@keystrokehq/shippo 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-address.cjs +1 -0
- package/dist/actions/create-address.cjs.map +1 -1
- package/dist/actions/create-address.d.cts +3 -30
- package/dist/actions/create-address.d.cts.map +1 -1
- package/dist/actions/create-address.d.mts +3 -30
- package/dist/actions/create-address.d.mts.map +1 -1
- package/dist/actions/create-address.mjs +1 -0
- package/dist/actions/create-address.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +1 -0
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +3 -57
- package/dist/actions/create-batch.d.cts.map +1 -1
- package/dist/actions/create-batch.d.mts +3 -57
- package/dist/actions/create-batch.d.mts.map +1 -1
- package/dist/actions/create-batch.mjs +1 -0
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-carrier-account.cjs +1 -0
- package/dist/actions/create-carrier-account.cjs.map +1 -1
- package/dist/actions/create-carrier-account.d.cts +3 -43
- package/dist/actions/create-carrier-account.d.cts.map +1 -1
- package/dist/actions/create-carrier-account.d.mts +3 -43
- package/dist/actions/create-carrier-account.d.mts.map +1 -1
- package/dist/actions/create-carrier-account.mjs +1 -0
- package/dist/actions/create-carrier-account.mjs.map +1 -1
- package/dist/actions/create-customs-item.cjs +1 -0
- package/dist/actions/create-customs-item.cjs.map +1 -1
- package/dist/actions/create-customs-item.d.cts +3 -26
- package/dist/actions/create-customs-item.d.cts.map +1 -1
- package/dist/actions/create-customs-item.d.mts +3 -26
- package/dist/actions/create-customs-item.d.mts.map +1 -1
- package/dist/actions/create-customs-item.mjs +1 -0
- package/dist/actions/create-customs-item.mjs.map +1 -1
- package/dist/actions/create-live-rate.cjs +1 -0
- package/dist/actions/create-live-rate.cjs.map +1 -1
- package/dist/actions/create-live-rate.d.cts +3 -63
- package/dist/actions/create-live-rate.d.cts.map +1 -1
- package/dist/actions/create-live-rate.d.mts +3 -63
- package/dist/actions/create-live-rate.d.mts.map +1 -1
- package/dist/actions/create-live-rate.mjs +1 -0
- package/dist/actions/create-live-rate.mjs.map +1 -1
- package/dist/actions/create-manifest.cjs +1 -0
- package/dist/actions/create-manifest.cjs.map +1 -1
- package/dist/actions/create-manifest.d.cts +3 -20
- package/dist/actions/create-manifest.d.cts.map +1 -1
- package/dist/actions/create-manifest.d.mts +3 -20
- package/dist/actions/create-manifest.d.mts.map +1 -1
- package/dist/actions/create-manifest.mjs +1 -0
- package/dist/actions/create-manifest.mjs.map +1 -1
- package/dist/actions/create-merchant-address.cjs +1 -0
- package/dist/actions/create-merchant-address.cjs.map +1 -1
- package/dist/actions/create-merchant-address.d.cts +3 -29
- package/dist/actions/create-merchant-address.d.cts.map +1 -1
- package/dist/actions/create-merchant-address.d.mts +3 -29
- package/dist/actions/create-merchant-address.d.mts.map +1 -1
- package/dist/actions/create-merchant-address.mjs +1 -0
- package/dist/actions/create-merchant-address.mjs.map +1 -1
- package/dist/actions/create-merchant-batch.cjs +1 -0
- package/dist/actions/create-merchant-batch.cjs.map +1 -1
- package/dist/actions/create-merchant-batch.d.cts +5 -29
- package/dist/actions/create-merchant-batch.d.cts.map +1 -1
- package/dist/actions/create-merchant-batch.d.mts +5 -29
- package/dist/actions/create-merchant-batch.d.mts.map +1 -1
- package/dist/actions/create-merchant-batch.mjs +1 -0
- package/dist/actions/create-merchant-batch.mjs.map +1 -1
- package/dist/actions/create-merchant-carrier-account.cjs +1 -0
- package/dist/actions/create-merchant-carrier-account.cjs.map +1 -1
- package/dist/actions/create-merchant-carrier-account.d.cts +3 -45
- package/dist/actions/create-merchant-carrier-account.d.cts.map +1 -1
- package/dist/actions/create-merchant-carrier-account.d.mts +3 -45
- package/dist/actions/create-merchant-carrier-account.d.mts.map +1 -1
- package/dist/actions/create-merchant-carrier-account.mjs +1 -0
- package/dist/actions/create-merchant-carrier-account.mjs.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.cjs +1 -0
- package/dist/actions/create-merchant-customs-declaration.cjs.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.d.cts +4 -51
- package/dist/actions/create-merchant-customs-declaration.d.cts.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.d.mts +4 -51
- package/dist/actions/create-merchant-customs-declaration.d.mts.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.mjs +1 -0
- package/dist/actions/create-merchant-customs-declaration.mjs.map +1 -1
- package/dist/actions/create-merchant-customs-item.cjs +1 -0
- package/dist/actions/create-merchant-customs-item.cjs.map +1 -1
- package/dist/actions/create-merchant-customs-item.d.cts +4 -28
- package/dist/actions/create-merchant-customs-item.d.cts.map +1 -1
- package/dist/actions/create-merchant-customs-item.d.mts +4 -28
- package/dist/actions/create-merchant-customs-item.d.mts.map +1 -1
- package/dist/actions/create-merchant-customs-item.mjs +1 -0
- package/dist/actions/create-merchant-customs-item.mjs.map +1 -1
- package/dist/actions/create-merchant-order.cjs +1 -0
- package/dist/actions/create-merchant-order.cjs.map +1 -1
- package/dist/actions/create-merchant-order.d.cts +3 -63
- package/dist/actions/create-merchant-order.d.cts.map +1 -1
- package/dist/actions/create-merchant-order.d.mts +3 -63
- package/dist/actions/create-merchant-order.d.mts.map +1 -1
- package/dist/actions/create-merchant-order.mjs +1 -0
- package/dist/actions/create-merchant-order.mjs.map +1 -1
- package/dist/actions/create-merchant-parcel.cjs +1 -0
- package/dist/actions/create-merchant-parcel.cjs.map +1 -1
- package/dist/actions/create-merchant-parcel.d.cts +3 -38
- package/dist/actions/create-merchant-parcel.d.cts.map +1 -1
- package/dist/actions/create-merchant-parcel.d.mts +3 -38
- package/dist/actions/create-merchant-parcel.d.mts.map +1 -1
- package/dist/actions/create-merchant-parcel.mjs +1 -0
- package/dist/actions/create-merchant-parcel.mjs.map +1 -1
- package/dist/actions/create-merchant-refund.cjs +1 -0
- package/dist/actions/create-merchant-refund.cjs.map +1 -1
- package/dist/actions/create-merchant-refund.d.cts +3 -18
- package/dist/actions/create-merchant-refund.d.cts.map +1 -1
- package/dist/actions/create-merchant-refund.d.mts +3 -18
- package/dist/actions/create-merchant-refund.d.mts.map +1 -1
- package/dist/actions/create-merchant-refund.mjs +1 -0
- package/dist/actions/create-merchant-refund.mjs.map +1 -1
- package/dist/actions/create-merchant-shipment.cjs +1 -0
- package/dist/actions/create-merchant-shipment.cjs.map +1 -1
- package/dist/actions/create-merchant-shipment.d.cts +3 -81
- package/dist/actions/create-merchant-shipment.d.cts.map +1 -1
- package/dist/actions/create-merchant-shipment.d.mts +3 -81
- package/dist/actions/create-merchant-shipment.d.mts.map +1 -1
- package/dist/actions/create-merchant-shipment.mjs +1 -0
- package/dist/actions/create-merchant-shipment.mjs.map +1 -1
- package/dist/actions/create-merchant-transaction.cjs +1 -0
- package/dist/actions/create-merchant-transaction.cjs.map +1 -1
- package/dist/actions/create-merchant-transaction.d.cts +4 -21
- package/dist/actions/create-merchant-transaction.d.cts.map +1 -1
- package/dist/actions/create-merchant-transaction.d.mts +4 -21
- package/dist/actions/create-merchant-transaction.d.mts.map +1 -1
- package/dist/actions/create-merchant-transaction.mjs +1 -0
- package/dist/actions/create-merchant-transaction.mjs.map +1 -1
- package/dist/actions/create-order.cjs +1 -0
- package/dist/actions/create-order.cjs.map +1 -1
- package/dist/actions/create-order.d.cts +3 -68
- package/dist/actions/create-order.d.cts.map +1 -1
- package/dist/actions/create-order.d.mts +3 -68
- package/dist/actions/create-order.d.mts.map +1 -1
- package/dist/actions/create-order.mjs +1 -0
- package/dist/actions/create-order.mjs.map +1 -1
- package/dist/actions/create-parcel.cjs +1 -0
- package/dist/actions/create-parcel.cjs.map +1 -1
- package/dist/actions/create-parcel.d.cts +3 -36
- package/dist/actions/create-parcel.d.cts.map +1 -1
- package/dist/actions/create-parcel.d.mts +3 -36
- package/dist/actions/create-parcel.d.mts.map +1 -1
- package/dist/actions/create-parcel.mjs +1 -0
- package/dist/actions/create-parcel.mjs.map +1 -1
- package/dist/actions/create-refund.cjs +1 -0
- package/dist/actions/create-refund.cjs.map +1 -1
- package/dist/actions/create-refund.d.cts +3 -17
- package/dist/actions/create-refund.d.cts.map +1 -1
- package/dist/actions/create-refund.d.mts +3 -17
- package/dist/actions/create-refund.d.mts.map +1 -1
- package/dist/actions/create-refund.mjs +1 -0
- package/dist/actions/create-refund.mjs.map +1 -1
- package/dist/actions/create-service-group.cjs +1 -0
- package/dist/actions/create-service-group.cjs.map +1 -1
- package/dist/actions/create-service-group.d.cts +3 -28
- package/dist/actions/create-service-group.d.cts.map +1 -1
- package/dist/actions/create-service-group.d.mts +3 -28
- package/dist/actions/create-service-group.d.mts.map +1 -1
- package/dist/actions/create-service-group.mjs +1 -0
- package/dist/actions/create-service-group.mjs.map +1 -1
- package/dist/actions/create-shipment.cjs +1 -0
- package/dist/actions/create-shipment.cjs.map +1 -1
- package/dist/actions/create-shipment.d.cts +3 -68
- package/dist/actions/create-shipment.d.cts.map +1 -1
- package/dist/actions/create-shipment.d.mts +3 -68
- package/dist/actions/create-shipment.d.mts.map +1 -1
- package/dist/actions/create-shipment.mjs +1 -0
- package/dist/actions/create-shipment.mjs.map +1 -1
- package/dist/actions/create-track.cjs +1 -0
- package/dist/actions/create-track.cjs.map +1 -1
- package/dist/actions/create-track.d.cts +3 -18
- package/dist/actions/create-track.d.cts.map +1 -1
- package/dist/actions/create-track.d.mts +3 -18
- package/dist/actions/create-track.d.mts.map +1 -1
- package/dist/actions/create-track.mjs +1 -0
- package/dist/actions/create-track.mjs.map +1 -1
- package/dist/actions/create-transaction.cjs +1 -0
- package/dist/actions/create-transaction.cjs.map +1 -1
- package/dist/actions/create-transaction.d.cts +4 -23
- package/dist/actions/create-transaction.d.cts.map +1 -1
- package/dist/actions/create-transaction.d.mts +4 -23
- package/dist/actions/create-transaction.d.mts.map +1 -1
- package/dist/actions/create-transaction.mjs +1 -0
- package/dist/actions/create-transaction.mjs.map +1 -1
- package/dist/actions/create-user-parcel-template.cjs +1 -0
- package/dist/actions/create-user-parcel-template.cjs.map +1 -1
- package/dist/actions/create-user-parcel-template.d.cts +3 -18
- package/dist/actions/create-user-parcel-template.d.cts.map +1 -1
- package/dist/actions/create-user-parcel-template.d.mts +3 -18
- package/dist/actions/create-user-parcel-template.d.mts.map +1 -1
- package/dist/actions/create-user-parcel-template.mjs +1 -0
- package/dist/actions/create-user-parcel-template.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +1 -0
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +3 -17
- package/dist/actions/create-webhook.d.cts.map +1 -1
- package/dist/actions/create-webhook.d.mts +3 -17
- package/dist/actions/create-webhook.d.mts.map +1 -1
- package/dist/actions/create-webhook.mjs +1 -0
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/delete-default-parcel-template.cjs +1 -0
- package/dist/actions/delete-default-parcel-template.cjs.map +1 -1
- package/dist/actions/delete-default-parcel-template.d.cts +3 -15
- package/dist/actions/delete-default-parcel-template.d.cts.map +1 -1
- package/dist/actions/delete-default-parcel-template.d.mts +3 -15
- package/dist/actions/delete-default-parcel-template.d.mts.map +1 -1
- package/dist/actions/delete-default-parcel-template.mjs +1 -0
- package/dist/actions/delete-default-parcel-template.mjs.map +1 -1
- package/dist/actions/delete-user-parcel-template.cjs +1 -0
- package/dist/actions/delete-user-parcel-template.cjs.map +1 -1
- package/dist/actions/delete-user-parcel-template.d.cts +3 -16
- package/dist/actions/delete-user-parcel-template.d.cts.map +1 -1
- package/dist/actions/delete-user-parcel-template.d.mts +3 -16
- package/dist/actions/delete-user-parcel-template.d.mts.map +1 -1
- package/dist/actions/delete-user-parcel-template.mjs +1 -0
- package/dist/actions/delete-user-parcel-template.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -0
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +3 -16
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +3 -16
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +1 -0
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/get-address.cjs +1 -0
- package/dist/actions/get-address.cjs.map +1 -1
- package/dist/actions/get-address.d.cts +3 -16
- package/dist/actions/get-address.d.cts.map +1 -1
- package/dist/actions/get-address.d.mts +3 -16
- package/dist/actions/get-address.d.mts.map +1 -1
- package/dist/actions/get-address.mjs +1 -0
- package/dist/actions/get-address.mjs.map +1 -1
- package/dist/actions/get-carrier-account.cjs +1 -0
- package/dist/actions/get-carrier-account.cjs.map +1 -1
- package/dist/actions/get-carrier-account.d.cts +3 -16
- package/dist/actions/get-carrier-account.d.cts.map +1 -1
- package/dist/actions/get-carrier-account.d.mts +3 -16
- package/dist/actions/get-carrier-account.d.mts.map +1 -1
- package/dist/actions/get-carrier-account.mjs +1 -0
- package/dist/actions/get-carrier-account.mjs.map +1 -1
- package/dist/actions/get-carrier-parcel-template.cjs +1 -0
- package/dist/actions/get-carrier-parcel-template.cjs.map +1 -1
- package/dist/actions/get-carrier-parcel-template.d.cts +3 -16
- package/dist/actions/get-carrier-parcel-template.d.cts.map +1 -1
- package/dist/actions/get-carrier-parcel-template.d.mts +3 -16
- package/dist/actions/get-carrier-parcel-template.d.mts.map +1 -1
- package/dist/actions/get-carrier-parcel-template.mjs +1 -0
- package/dist/actions/get-carrier-parcel-template.mjs.map +1 -1
- package/dist/actions/get-carrier-registration-status.cjs +1 -0
- package/dist/actions/get-carrier-registration-status.cjs.map +1 -1
- package/dist/actions/get-carrier-registration-status.d.cts +3 -15
- package/dist/actions/get-carrier-registration-status.d.cts.map +1 -1
- package/dist/actions/get-carrier-registration-status.d.mts +3 -15
- package/dist/actions/get-carrier-registration-status.d.mts.map +1 -1
- package/dist/actions/get-carrier-registration-status.mjs +1 -0
- package/dist/actions/get-carrier-registration-status.mjs.map +1 -1
- package/dist/actions/get-customs-declaration.cjs +1 -0
- package/dist/actions/get-customs-declaration.cjs.map +1 -1
- package/dist/actions/get-customs-declaration.d.cts +3 -17
- package/dist/actions/get-customs-declaration.d.cts.map +1 -1
- package/dist/actions/get-customs-declaration.d.mts +3 -17
- package/dist/actions/get-customs-declaration.d.mts.map +1 -1
- package/dist/actions/get-customs-declaration.mjs +1 -0
- package/dist/actions/get-customs-declaration.mjs.map +1 -1
- package/dist/actions/get-customs-item.cjs +1 -0
- package/dist/actions/get-customs-item.cjs.map +1 -1
- package/dist/actions/get-customs-item.d.cts +3 -17
- package/dist/actions/get-customs-item.d.cts.map +1 -1
- package/dist/actions/get-customs-item.d.mts +3 -17
- package/dist/actions/get-customs-item.d.mts.map +1 -1
- package/dist/actions/get-customs-item.mjs +1 -0
- package/dist/actions/get-customs-item.mjs.map +1 -1
- package/dist/actions/get-default-parcel-template.cjs +1 -0
- package/dist/actions/get-default-parcel-template.cjs.map +1 -1
- package/dist/actions/get-default-parcel-template.d.cts +3 -15
- package/dist/actions/get-default-parcel-template.d.cts.map +1 -1
- package/dist/actions/get-default-parcel-template.d.mts +3 -15
- package/dist/actions/get-default-parcel-template.d.mts.map +1 -1
- package/dist/actions/get-default-parcel-template.mjs +1 -0
- package/dist/actions/get-default-parcel-template.mjs.map +1 -1
- package/dist/actions/get-merchant-address.cjs +1 -0
- package/dist/actions/get-merchant-address.cjs.map +1 -1
- package/dist/actions/get-merchant-address.d.cts +3 -17
- package/dist/actions/get-merchant-address.d.cts.map +1 -1
- package/dist/actions/get-merchant-address.d.mts +3 -17
- package/dist/actions/get-merchant-address.d.mts.map +1 -1
- package/dist/actions/get-merchant-address.mjs +1 -0
- package/dist/actions/get-merchant-address.mjs.map +1 -1
- package/dist/actions/get-merchant-batch.cjs +1 -0
- package/dist/actions/get-merchant-batch.cjs.map +1 -1
- package/dist/actions/get-merchant-batch.d.cts +5 -19
- package/dist/actions/get-merchant-batch.d.cts.map +1 -1
- package/dist/actions/get-merchant-batch.d.mts +5 -19
- package/dist/actions/get-merchant-batch.d.mts.map +1 -1
- package/dist/actions/get-merchant-batch.mjs +1 -0
- package/dist/actions/get-merchant-batch.mjs.map +1 -1
- package/dist/actions/get-merchant-carrier-account.cjs +1 -0
- package/dist/actions/get-merchant-carrier-account.cjs.map +1 -1
- package/dist/actions/get-merchant-carrier-account.d.cts +3 -17
- package/dist/actions/get-merchant-carrier-account.d.cts.map +1 -1
- package/dist/actions/get-merchant-carrier-account.d.mts +3 -17
- package/dist/actions/get-merchant-carrier-account.d.mts.map +1 -1
- package/dist/actions/get-merchant-carrier-account.mjs +1 -0
- package/dist/actions/get-merchant-carrier-account.mjs.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.cjs +1 -0
- package/dist/actions/get-merchant-carrier-registration-status.cjs.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.d.cts +3 -17
- package/dist/actions/get-merchant-carrier-registration-status.d.cts.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.d.mts +3 -17
- package/dist/actions/get-merchant-carrier-registration-status.d.mts.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.mjs +1 -0
- package/dist/actions/get-merchant-carrier-registration-status.mjs.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.cjs +1 -0
- package/dist/actions/get-merchant-customs-declaration.cjs.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.d.cts +3 -18
- package/dist/actions/get-merchant-customs-declaration.d.cts.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.d.mts +3 -18
- package/dist/actions/get-merchant-customs-declaration.d.mts.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.mjs +1 -0
- package/dist/actions/get-merchant-customs-declaration.mjs.map +1 -1
- package/dist/actions/get-merchant-customs-item.cjs +1 -0
- package/dist/actions/get-merchant-customs-item.cjs.map +1 -1
- package/dist/actions/get-merchant-customs-item.d.cts +3 -18
- package/dist/actions/get-merchant-customs-item.d.cts.map +1 -1
- package/dist/actions/get-merchant-customs-item.d.mts +3 -18
- package/dist/actions/get-merchant-customs-item.d.mts.map +1 -1
- package/dist/actions/get-merchant-customs-item.mjs +1 -0
- package/dist/actions/get-merchant-customs-item.mjs.map +1 -1
- package/dist/actions/get-merchant-manifest.cjs +1 -0
- package/dist/actions/get-merchant-manifest.cjs.map +1 -1
- package/dist/actions/get-merchant-manifest.d.cts +3 -17
- package/dist/actions/get-merchant-manifest.d.cts.map +1 -1
- package/dist/actions/get-merchant-manifest.d.mts +3 -17
- package/dist/actions/get-merchant-manifest.d.mts.map +1 -1
- package/dist/actions/get-merchant-manifest.mjs +1 -0
- package/dist/actions/get-merchant-manifest.mjs.map +1 -1
- package/dist/actions/get-merchant-order.cjs +1 -0
- package/dist/actions/get-merchant-order.cjs.map +1 -1
- package/dist/actions/get-merchant-order.d.cts +3 -17
- package/dist/actions/get-merchant-order.d.cts.map +1 -1
- package/dist/actions/get-merchant-order.d.mts +3 -17
- package/dist/actions/get-merchant-order.d.mts.map +1 -1
- package/dist/actions/get-merchant-order.mjs +1 -0
- package/dist/actions/get-merchant-order.mjs.map +1 -1
- package/dist/actions/get-merchant-parcel.cjs +1 -0
- package/dist/actions/get-merchant-parcel.cjs.map +1 -1
- package/dist/actions/get-merchant-parcel.d.cts +3 -17
- package/dist/actions/get-merchant-parcel.d.cts.map +1 -1
- package/dist/actions/get-merchant-parcel.d.mts +3 -17
- package/dist/actions/get-merchant-parcel.d.mts.map +1 -1
- package/dist/actions/get-merchant-parcel.mjs +1 -0
- package/dist/actions/get-merchant-parcel.mjs.map +1 -1
- package/dist/actions/get-merchant-rate.cjs +1 -0
- package/dist/actions/get-merchant-rate.cjs.map +1 -1
- package/dist/actions/get-merchant-rate.d.cts +3 -17
- package/dist/actions/get-merchant-rate.d.cts.map +1 -1
- package/dist/actions/get-merchant-rate.d.mts +3 -17
- package/dist/actions/get-merchant-rate.d.mts.map +1 -1
- package/dist/actions/get-merchant-rate.mjs +1 -0
- package/dist/actions/get-merchant-rate.mjs.map +1 -1
- package/dist/actions/get-merchant-refund.cjs +1 -0
- package/dist/actions/get-merchant-refund.cjs.map +1 -1
- package/dist/actions/get-merchant-refund.d.cts +3 -17
- package/dist/actions/get-merchant-refund.d.cts.map +1 -1
- package/dist/actions/get-merchant-refund.d.mts +3 -17
- package/dist/actions/get-merchant-refund.d.mts.map +1 -1
- package/dist/actions/get-merchant-refund.mjs +1 -0
- package/dist/actions/get-merchant-refund.mjs.map +1 -1
- package/dist/actions/get-merchant-shipment.cjs +1 -0
- package/dist/actions/get-merchant-shipment.cjs.map +1 -1
- package/dist/actions/get-merchant-shipment.d.cts +3 -17
- package/dist/actions/get-merchant-shipment.d.cts.map +1 -1
- package/dist/actions/get-merchant-shipment.d.mts +3 -17
- package/dist/actions/get-merchant-shipment.d.mts.map +1 -1
- package/dist/actions/get-merchant-shipment.mjs +1 -0
- package/dist/actions/get-merchant-shipment.mjs.map +1 -1
- package/dist/actions/get-merchant-track.cjs +1 -0
- package/dist/actions/get-merchant-track.cjs.map +1 -1
- package/dist/actions/get-merchant-track.d.cts +3 -18
- package/dist/actions/get-merchant-track.d.cts.map +1 -1
- package/dist/actions/get-merchant-track.d.mts +3 -18
- package/dist/actions/get-merchant-track.d.mts.map +1 -1
- package/dist/actions/get-merchant-track.mjs +1 -0
- package/dist/actions/get-merchant-track.mjs.map +1 -1
- package/dist/actions/get-merchant-transaction.cjs +1 -0
- package/dist/actions/get-merchant-transaction.cjs.map +1 -1
- package/dist/actions/get-merchant-transaction.d.cts +4 -18
- package/dist/actions/get-merchant-transaction.d.cts.map +1 -1
- package/dist/actions/get-merchant-transaction.d.mts +4 -18
- package/dist/actions/get-merchant-transaction.d.mts.map +1 -1
- package/dist/actions/get-merchant-transaction.mjs +1 -0
- package/dist/actions/get-merchant-transaction.mjs.map +1 -1
- package/dist/actions/get-merchant.cjs +1 -0
- package/dist/actions/get-merchant.cjs.map +1 -1
- package/dist/actions/get-merchant.d.cts +3 -16
- package/dist/actions/get-merchant.d.cts.map +1 -1
- package/dist/actions/get-merchant.d.mts +3 -16
- package/dist/actions/get-merchant.d.mts.map +1 -1
- package/dist/actions/get-merchant.mjs +1 -0
- package/dist/actions/get-merchant.mjs.map +1 -1
- package/dist/actions/get-order.cjs +1 -0
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +3 -16
- package/dist/actions/get-order.d.cts.map +1 -1
- package/dist/actions/get-order.d.mts +3 -16
- package/dist/actions/get-order.d.mts.map +1 -1
- package/dist/actions/get-order.mjs +1 -0
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-parcel.cjs +1 -0
- package/dist/actions/get-parcel.cjs.map +1 -1
- package/dist/actions/get-parcel.d.cts +3 -16
- package/dist/actions/get-parcel.d.cts.map +1 -1
- package/dist/actions/get-parcel.d.mts +3 -16
- package/dist/actions/get-parcel.d.mts.map +1 -1
- package/dist/actions/get-parcel.mjs +1 -0
- package/dist/actions/get-parcel.mjs.map +1 -1
- package/dist/actions/get-rate.cjs +1 -0
- package/dist/actions/get-rate.cjs.map +1 -1
- package/dist/actions/get-rate.d.cts +3 -16
- package/dist/actions/get-rate.d.cts.map +1 -1
- package/dist/actions/get-rate.d.mts +3 -16
- package/dist/actions/get-rate.d.mts.map +1 -1
- package/dist/actions/get-rate.mjs +1 -0
- package/dist/actions/get-rate.mjs.map +1 -1
- package/dist/actions/get-refund.cjs +1 -0
- package/dist/actions/get-refund.cjs.map +1 -1
- package/dist/actions/get-refund.d.cts +3 -16
- package/dist/actions/get-refund.d.cts.map +1 -1
- package/dist/actions/get-refund.d.mts +3 -16
- package/dist/actions/get-refund.d.mts.map +1 -1
- package/dist/actions/get-refund.mjs +1 -0
- package/dist/actions/get-refund.mjs.map +1 -1
- package/dist/actions/get-shipment.cjs +1 -0
- package/dist/actions/get-shipment.cjs.map +1 -1
- package/dist/actions/get-shipment.d.cts +3 -16
- package/dist/actions/get-shipment.d.cts.map +1 -1
- package/dist/actions/get-shipment.d.mts +3 -16
- package/dist/actions/get-shipment.d.mts.map +1 -1
- package/dist/actions/get-shipment.mjs +1 -0
- package/dist/actions/get-shipment.mjs.map +1 -1
- package/dist/actions/get-shippo-account.cjs +1 -0
- package/dist/actions/get-shippo-account.cjs.map +1 -1
- package/dist/actions/get-shippo-account.d.cts +3 -16
- package/dist/actions/get-shippo-account.d.cts.map +1 -1
- package/dist/actions/get-shippo-account.d.mts +3 -16
- package/dist/actions/get-shippo-account.d.mts.map +1 -1
- package/dist/actions/get-shippo-account.mjs +1 -0
- package/dist/actions/get-shippo-account.mjs.map +1 -1
- package/dist/actions/get-track.cjs +1 -0
- package/dist/actions/get-track.cjs.map +1 -1
- package/dist/actions/get-track.d.cts +3 -17
- package/dist/actions/get-track.d.cts.map +1 -1
- package/dist/actions/get-track.d.mts +3 -17
- package/dist/actions/get-track.d.mts.map +1 -1
- package/dist/actions/get-track.mjs +1 -0
- package/dist/actions/get-track.mjs.map +1 -1
- package/dist/actions/get-transaction.cjs +1 -0
- package/dist/actions/get-transaction.cjs.map +1 -1
- package/dist/actions/get-transaction.d.cts +3 -16
- package/dist/actions/get-transaction.d.cts.map +1 -1
- package/dist/actions/get-transaction.d.mts +3 -16
- package/dist/actions/get-transaction.d.mts.map +1 -1
- package/dist/actions/get-transaction.mjs +1 -0
- package/dist/actions/get-transaction.mjs.map +1 -1
- package/dist/actions/get-user-parcel-template.cjs +1 -0
- package/dist/actions/get-user-parcel-template.cjs.map +1 -1
- package/dist/actions/get-user-parcel-template.d.cts +3 -16
- package/dist/actions/get-user-parcel-template.d.cts.map +1 -1
- package/dist/actions/get-user-parcel-template.d.mts +3 -16
- package/dist/actions/get-user-parcel-template.d.mts.map +1 -1
- package/dist/actions/get-user-parcel-template.mjs +1 -0
- package/dist/actions/get-user-parcel-template.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +1 -0
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +3 -15
- package/dist/actions/get-webhook.d.cts.map +1 -1
- package/dist/actions/get-webhook.d.mts +3 -15
- package/dist/actions/get-webhook.d.mts.map +1 -1
- package/dist/actions/get-webhook.mjs +1 -0
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/list-addresses.cjs +1 -0
- package/dist/actions/list-addresses.cjs.map +1 -1
- package/dist/actions/list-addresses.d.cts +3 -17
- package/dist/actions/list-addresses.d.cts.map +1 -1
- package/dist/actions/list-addresses.d.mts +3 -17
- package/dist/actions/list-addresses.d.mts.map +1 -1
- package/dist/actions/list-addresses.mjs +1 -0
- package/dist/actions/list-addresses.mjs.map +1 -1
- package/dist/actions/list-carrier-accounts.cjs +1 -0
- package/dist/actions/list-carrier-accounts.cjs.map +1 -1
- package/dist/actions/list-carrier-accounts.d.cts +3 -17
- package/dist/actions/list-carrier-accounts.d.cts.map +1 -1
- package/dist/actions/list-carrier-accounts.d.mts +3 -17
- package/dist/actions/list-carrier-accounts.d.mts.map +1 -1
- package/dist/actions/list-carrier-accounts.mjs +1 -0
- package/dist/actions/list-carrier-accounts.mjs.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.cjs +1 -0
- package/dist/actions/list-carrier-parcel-templates.cjs.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.d.cts +3 -17
- package/dist/actions/list-carrier-parcel-templates.d.cts.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.d.mts +3 -17
- package/dist/actions/list-carrier-parcel-templates.d.mts.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.mjs +1 -0
- package/dist/actions/list-carrier-parcel-templates.mjs.map +1 -1
- package/dist/actions/list-customs-declarations.cjs +1 -0
- package/dist/actions/list-customs-declarations.cjs.map +1 -1
- package/dist/actions/list-customs-declarations.d.cts +3 -17
- package/dist/actions/list-customs-declarations.d.cts.map +1 -1
- package/dist/actions/list-customs-declarations.d.mts +3 -17
- package/dist/actions/list-customs-declarations.d.mts.map +1 -1
- package/dist/actions/list-customs-declarations.mjs +1 -0
- package/dist/actions/list-customs-declarations.mjs.map +1 -1
- package/dist/actions/list-customs-items.cjs +1 -0
- package/dist/actions/list-customs-items.cjs.map +1 -1
- package/dist/actions/list-customs-items.d.cts +3 -17
- package/dist/actions/list-customs-items.d.cts.map +1 -1
- package/dist/actions/list-customs-items.d.mts +3 -17
- package/dist/actions/list-customs-items.d.mts.map +1 -1
- package/dist/actions/list-customs-items.mjs +1 -0
- package/dist/actions/list-customs-items.mjs.map +1 -1
- package/dist/actions/list-manifests.cjs +1 -0
- package/dist/actions/list-manifests.cjs.map +1 -1
- package/dist/actions/list-manifests.d.cts +3 -17
- package/dist/actions/list-manifests.d.cts.map +1 -1
- package/dist/actions/list-manifests.d.mts +3 -17
- package/dist/actions/list-manifests.d.mts.map +1 -1
- package/dist/actions/list-manifests.mjs +1 -0
- package/dist/actions/list-manifests.mjs.map +1 -1
- package/dist/actions/list-merchant-addresses.cjs +1 -0
- package/dist/actions/list-merchant-addresses.cjs.map +1 -1
- package/dist/actions/list-merchant-addresses.d.cts +3 -18
- package/dist/actions/list-merchant-addresses.d.cts.map +1 -1
- package/dist/actions/list-merchant-addresses.d.mts +3 -18
- package/dist/actions/list-merchant-addresses.d.mts.map +1 -1
- package/dist/actions/list-merchant-addresses.mjs +1 -0
- package/dist/actions/list-merchant-addresses.mjs.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.cjs +1 -0
- package/dist/actions/list-merchant-carrier-accounts.cjs.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.d.cts +3 -18
- package/dist/actions/list-merchant-carrier-accounts.d.cts.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.d.mts +3 -18
- package/dist/actions/list-merchant-carrier-accounts.d.mts.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.mjs +1 -0
- package/dist/actions/list-merchant-carrier-accounts.mjs.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.cjs +1 -0
- package/dist/actions/list-merchant-customs-declarations.cjs.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.d.cts +3 -18
- package/dist/actions/list-merchant-customs-declarations.d.cts.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.d.mts +3 -18
- package/dist/actions/list-merchant-customs-declarations.d.mts.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.mjs +1 -0
- package/dist/actions/list-merchant-customs-declarations.mjs.map +1 -1
- package/dist/actions/list-merchant-customs-items.cjs +1 -0
- package/dist/actions/list-merchant-customs-items.cjs.map +1 -1
- package/dist/actions/list-merchant-customs-items.d.cts +3 -18
- package/dist/actions/list-merchant-customs-items.d.cts.map +1 -1
- package/dist/actions/list-merchant-customs-items.d.mts +3 -18
- package/dist/actions/list-merchant-customs-items.d.mts.map +1 -1
- package/dist/actions/list-merchant-customs-items.mjs +1 -0
- package/dist/actions/list-merchant-customs-items.mjs.map +1 -1
- package/dist/actions/list-merchant-manifests.cjs +1 -0
- package/dist/actions/list-merchant-manifests.cjs.map +1 -1
- package/dist/actions/list-merchant-manifests.d.cts +3 -18
- package/dist/actions/list-merchant-manifests.d.cts.map +1 -1
- package/dist/actions/list-merchant-manifests.d.mts +3 -18
- package/dist/actions/list-merchant-manifests.d.mts.map +1 -1
- package/dist/actions/list-merchant-manifests.mjs +1 -0
- package/dist/actions/list-merchant-manifests.mjs.map +1 -1
- package/dist/actions/list-merchant-parcels.cjs +1 -0
- package/dist/actions/list-merchant-parcels.cjs.map +1 -1
- package/dist/actions/list-merchant-parcels.d.cts +3 -18
- package/dist/actions/list-merchant-parcels.d.cts.map +1 -1
- package/dist/actions/list-merchant-parcels.d.mts +3 -18
- package/dist/actions/list-merchant-parcels.d.mts.map +1 -1
- package/dist/actions/list-merchant-parcels.mjs +1 -0
- package/dist/actions/list-merchant-parcels.mjs.map +1 -1
- package/dist/actions/list-merchant-shipment-rates-by-currency.cjs +1 -0
- package/dist/actions/list-merchant-shipment-rates-by-currency.cjs.map +1 -1
- package/dist/actions/list-merchant-shipment-rates-by-currency.d.cts +3 -20
- 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 +3 -20
- package/dist/actions/list-merchant-shipment-rates-by-currency.d.mts.map +1 -1
- package/dist/actions/list-merchant-shipment-rates-by-currency.mjs +1 -0
- package/dist/actions/list-merchant-shipment-rates-by-currency.mjs.map +1 -1
- package/dist/actions/list-merchant-shipments.cjs +1 -0
- package/dist/actions/list-merchant-shipments.cjs.map +1 -1
- package/dist/actions/list-merchant-shipments.d.cts +3 -18
- package/dist/actions/list-merchant-shipments.d.cts.map +1 -1
- package/dist/actions/list-merchant-shipments.d.mts +3 -18
- package/dist/actions/list-merchant-shipments.d.mts.map +1 -1
- package/dist/actions/list-merchant-shipments.mjs +1 -0
- package/dist/actions/list-merchant-shipments.mjs.map +1 -1
- package/dist/actions/list-merchant-transactions.cjs +1 -0
- package/dist/actions/list-merchant-transactions.cjs.map +1 -1
- package/dist/actions/list-merchant-transactions.d.cts +3 -18
- package/dist/actions/list-merchant-transactions.d.cts.map +1 -1
- package/dist/actions/list-merchant-transactions.d.mts +3 -18
- package/dist/actions/list-merchant-transactions.d.mts.map +1 -1
- package/dist/actions/list-merchant-transactions.mjs +1 -0
- package/dist/actions/list-merchant-transactions.mjs.map +1 -1
- package/dist/actions/list-merchants.cjs +1 -0
- package/dist/actions/list-merchants.cjs.map +1 -1
- package/dist/actions/list-merchants.d.cts +3 -17
- package/dist/actions/list-merchants.d.cts.map +1 -1
- package/dist/actions/list-merchants.d.mts +3 -17
- package/dist/actions/list-merchants.d.mts.map +1 -1
- package/dist/actions/list-merchants.mjs +1 -0
- package/dist/actions/list-merchants.mjs.map +1 -1
- package/dist/actions/list-orders.cjs +1 -0
- package/dist/actions/list-orders.cjs.map +1 -1
- package/dist/actions/list-orders.d.cts +3 -17
- package/dist/actions/list-orders.d.cts.map +1 -1
- package/dist/actions/list-orders.d.mts +3 -17
- package/dist/actions/list-orders.d.mts.map +1 -1
- package/dist/actions/list-orders.mjs +1 -0
- package/dist/actions/list-orders.mjs.map +1 -1
- package/dist/actions/list-refunds.cjs +1 -0
- package/dist/actions/list-refunds.cjs.map +1 -1
- package/dist/actions/list-refunds.d.cts +3 -16
- package/dist/actions/list-refunds.d.cts.map +1 -1
- package/dist/actions/list-refunds.d.mts +3 -16
- package/dist/actions/list-refunds.d.mts.map +1 -1
- package/dist/actions/list-refunds.mjs +1 -0
- package/dist/actions/list-refunds.mjs.map +1 -1
- package/dist/actions/list-service-groups.cjs +1 -0
- package/dist/actions/list-service-groups.cjs.map +1 -1
- package/dist/actions/list-service-groups.d.cts +3 -15
- package/dist/actions/list-service-groups.d.cts.map +1 -1
- package/dist/actions/list-service-groups.d.mts +3 -15
- package/dist/actions/list-service-groups.d.mts.map +1 -1
- package/dist/actions/list-service-groups.mjs +1 -0
- package/dist/actions/list-service-groups.mjs.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.cjs +1 -0
- package/dist/actions/list-shipment-rates-by-currency.cjs.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.d.cts +3 -19
- package/dist/actions/list-shipment-rates-by-currency.d.cts.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.d.mts +3 -19
- package/dist/actions/list-shipment-rates-by-currency.d.mts.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.mjs +1 -0
- package/dist/actions/list-shipment-rates-by-currency.mjs.map +1 -1
- package/dist/actions/list-shipment-rates.cjs +1 -0
- package/dist/actions/list-shipment-rates.cjs.map +1 -1
- package/dist/actions/list-shipment-rates.d.cts +3 -18
- package/dist/actions/list-shipment-rates.d.cts.map +1 -1
- package/dist/actions/list-shipment-rates.d.mts +3 -18
- package/dist/actions/list-shipment-rates.d.mts.map +1 -1
- package/dist/actions/list-shipment-rates.mjs +1 -0
- package/dist/actions/list-shipment-rates.mjs.map +1 -1
- package/dist/actions/list-shipments.cjs +1 -0
- package/dist/actions/list-shipments.cjs.map +1 -1
- package/dist/actions/list-shipments.d.cts +3 -17
- package/dist/actions/list-shipments.d.cts.map +1 -1
- package/dist/actions/list-shipments.d.mts +3 -17
- package/dist/actions/list-shipments.d.mts.map +1 -1
- package/dist/actions/list-shipments.mjs +1 -0
- package/dist/actions/list-shipments.mjs.map +1 -1
- package/dist/actions/list-shippo-accounts.cjs +1 -0
- package/dist/actions/list-shippo-accounts.cjs.map +1 -1
- package/dist/actions/list-shippo-accounts.d.cts +3 -15
- package/dist/actions/list-shippo-accounts.d.cts.map +1 -1
- package/dist/actions/list-shippo-accounts.d.mts +3 -15
- package/dist/actions/list-shippo-accounts.d.mts.map +1 -1
- package/dist/actions/list-shippo-accounts.mjs +1 -0
- package/dist/actions/list-shippo-accounts.mjs.map +1 -1
- package/dist/actions/list-user-parcel-templates.cjs +1 -0
- package/dist/actions/list-user-parcel-templates.cjs.map +1 -1
- package/dist/actions/list-user-parcel-templates.d.cts +3 -15
- package/dist/actions/list-user-parcel-templates.d.cts.map +1 -1
- package/dist/actions/list-user-parcel-templates.d.mts +3 -15
- package/dist/actions/list-user-parcel-templates.d.mts.map +1 -1
- package/dist/actions/list-user-parcel-templates.mjs +1 -0
- package/dist/actions/list-user-parcel-templates.mjs.map +1 -1
- package/dist/actions/purchase-merchant-batch.cjs +1 -0
- package/dist/actions/purchase-merchant-batch.cjs.map +1 -1
- package/dist/actions/purchase-merchant-batch.d.cts +3 -17
- package/dist/actions/purchase-merchant-batch.d.cts.map +1 -1
- package/dist/actions/purchase-merchant-batch.d.mts +3 -17
- package/dist/actions/purchase-merchant-batch.d.mts.map +1 -1
- package/dist/actions/purchase-merchant-batch.mjs +1 -0
- package/dist/actions/purchase-merchant-batch.mjs.map +1 -1
- package/dist/actions/remove-shipments-from-batch.cjs +1 -0
- package/dist/actions/remove-shipments-from-batch.cjs.map +1 -1
- package/dist/actions/remove-shipments-from-batch.d.cts +3 -18
- package/dist/actions/remove-shipments-from-batch.d.cts.map +1 -1
- package/dist/actions/remove-shipments-from-batch.d.mts +3 -18
- package/dist/actions/remove-shipments-from-batch.d.mts.map +1 -1
- package/dist/actions/remove-shipments-from-batch.mjs +1 -0
- package/dist/actions/remove-shipments-from-batch.mjs.map +1 -1
- package/dist/actions/update-carrier-account.cjs +1 -0
- package/dist/actions/update-carrier-account.cjs.map +1 -1
- package/dist/actions/update-carrier-account.d.cts +3 -20
- package/dist/actions/update-carrier-account.d.cts.map +1 -1
- package/dist/actions/update-carrier-account.d.mts +3 -20
- package/dist/actions/update-carrier-account.d.mts.map +1 -1
- package/dist/actions/update-carrier-account.mjs +1 -0
- package/dist/actions/update-carrier-account.mjs.map +1 -1
- package/dist/actions/update-default-parcel-template.cjs +1 -0
- package/dist/actions/update-default-parcel-template.cjs.map +1 -1
- package/dist/actions/update-default-parcel-template.d.cts +3 -16
- package/dist/actions/update-default-parcel-template.d.cts.map +1 -1
- package/dist/actions/update-default-parcel-template.d.mts +3 -16
- package/dist/actions/update-default-parcel-template.d.mts.map +1 -1
- package/dist/actions/update-default-parcel-template.mjs +1 -0
- package/dist/actions/update-default-parcel-template.mjs.map +1 -1
- package/dist/actions/update-merchant-carrier-account.cjs +1 -0
- package/dist/actions/update-merchant-carrier-account.cjs.map +1 -1
- package/dist/actions/update-merchant-carrier-account.d.cts +3 -44
- package/dist/actions/update-merchant-carrier-account.d.cts.map +1 -1
- package/dist/actions/update-merchant-carrier-account.d.mts +3 -44
- package/dist/actions/update-merchant-carrier-account.d.mts.map +1 -1
- package/dist/actions/update-merchant-carrier-account.mjs +1 -0
- package/dist/actions/update-merchant-carrier-account.mjs.map +1 -1
- package/dist/actions/update-merchant.cjs +1 -0
- package/dist/actions/update-merchant.cjs.map +1 -1
- package/dist/actions/update-merchant.d.cts +3 -20
- package/dist/actions/update-merchant.d.cts.map +1 -1
- package/dist/actions/update-merchant.d.mts +3 -20
- package/dist/actions/update-merchant.d.mts.map +1 -1
- package/dist/actions/update-merchant.mjs +1 -0
- package/dist/actions/update-merchant.mjs.map +1 -1
- package/dist/actions/update-service-group.cjs +1 -0
- package/dist/actions/update-service-group.cjs.map +1 -1
- package/dist/actions/update-service-group.d.cts +3 -29
- package/dist/actions/update-service-group.d.cts.map +1 -1
- package/dist/actions/update-service-group.d.mts +3 -29
- package/dist/actions/update-service-group.d.mts.map +1 -1
- package/dist/actions/update-service-group.mjs +1 -0
- package/dist/actions/update-service-group.mjs.map +1 -1
- package/dist/actions/update-user-parcel-template.cjs +1 -0
- package/dist/actions/update-user-parcel-template.cjs.map +1 -1
- package/dist/actions/update-user-parcel-template.d.cts +3 -19
- package/dist/actions/update-user-parcel-template.d.cts.map +1 -1
- package/dist/actions/update-user-parcel-template.d.mts +3 -19
- package/dist/actions/update-user-parcel-template.d.mts.map +1 -1
- package/dist/actions/update-user-parcel-template.mjs +1 -0
- package/dist/actions/update-user-parcel-template.mjs.map +1 -1
- package/dist/actions/update-webhook.cjs +1 -0
- package/dist/actions/update-webhook.cjs.map +1 -1
- package/dist/actions/update-webhook.d.cts +3 -19
- package/dist/actions/update-webhook.d.cts.map +1 -1
- package/dist/actions/update-webhook.d.mts +3 -19
- package/dist/actions/update-webhook.d.mts.map +1 -1
- package/dist/actions/update-webhook.mjs +1 -0
- package/dist/actions/update-webhook.mjs.map +1 -1
- package/dist/actions/validate-address.cjs +1 -0
- package/dist/actions/validate-address.cjs.map +1 -1
- package/dist/actions/validate-address.d.cts +3 -16
- package/dist/actions/validate-address.d.cts.map +1 -1
- package/dist/actions/validate-address.d.mts +3 -16
- package/dist/actions/validate-address.d.mts.map +1 -1
- package/dist/actions/validate-address.mjs +1 -0
- package/dist/actions/validate-address.mjs.map +1 -1
- package/dist/actions/validate-merchant-address.cjs +1 -0
- package/dist/actions/validate-merchant-address.cjs.map +1 -1
- package/dist/actions/validate-merchant-address.d.cts +3 -17
- package/dist/actions/validate-merchant-address.d.cts.map +1 -1
- package/dist/actions/validate-merchant-address.d.mts +3 -17
- package/dist/actions/validate-merchant-address.d.mts.map +1 -1
- package/dist/actions/validate-merchant-address.mjs +1 -0
- package/dist/actions/validate-merchant-address.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shippo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-manifest.d.ts
|
|
@@ -24,26 +26,7 @@ declare const ShippoCreateManifestOutput: z.ZodObject<{
|
|
|
24
26
|
object_updated: z.ZodNullable<z.ZodString>;
|
|
25
27
|
carrier_account: z.ZodNullable<z.ZodString>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const shippoCreateManifest:
|
|
28
|
-
address_from: string;
|
|
29
|
-
shipment_date: string;
|
|
30
|
-
carrier_account: string;
|
|
31
|
-
transactions?: string[] | undefined;
|
|
32
|
-
async_manifest?: boolean | undefined;
|
|
33
|
-
shippo_api_version?: string | undefined;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
accessToken: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
41
|
-
connectionId: z.ZodString;
|
|
42
|
-
entityId: z.ZodString;
|
|
43
|
-
instanceId: z.ZodString;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
accessToken: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const shippoCreateManifest: AppAction<typeof ShippoCreateManifestInput, typeof ShippoCreateManifestOutput, typeof shippo.credential>;
|
|
47
30
|
//#endregion
|
|
48
31
|
export { shippoCreateManifest };
|
|
49
32
|
//# sourceMappingURL=create-manifest.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-manifest.d.cts","names":[],"sources":["../../src/actions/create-manifest.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-manifest.d.cts","names":[],"sources":["../../src/actions/create-manifest.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAa1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shippo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-manifest.d.ts
|
|
@@ -24,26 +26,7 @@ declare const ShippoCreateManifestOutput: z.ZodObject<{
|
|
|
24
26
|
object_updated: z.ZodNullable<z.ZodString>;
|
|
25
27
|
carrier_account: z.ZodNullable<z.ZodString>;
|
|
26
28
|
}, z.core.$loose>;
|
|
27
|
-
declare const shippoCreateManifest:
|
|
28
|
-
address_from: string;
|
|
29
|
-
shipment_date: string;
|
|
30
|
-
carrier_account: string;
|
|
31
|
-
transactions?: string[] | undefined;
|
|
32
|
-
async_manifest?: boolean | undefined;
|
|
33
|
-
shippo_api_version?: string | undefined;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
35
|
-
connectionId: z.ZodString;
|
|
36
|
-
entityId: z.ZodString;
|
|
37
|
-
instanceId: z.ZodString;
|
|
38
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
-
accessToken: z.ZodString;
|
|
40
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
41
|
-
connectionId: z.ZodString;
|
|
42
|
-
entityId: z.ZodString;
|
|
43
|
-
instanceId: z.ZodString;
|
|
44
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
-
accessToken: z.ZodString;
|
|
46
|
-
}, z.core.$strip>>]>;
|
|
29
|
+
declare const shippoCreateManifest: AppAction<typeof ShippoCreateManifestInput, typeof ShippoCreateManifestOutput, typeof shippo.credential>;
|
|
47
30
|
//#endregion
|
|
48
31
|
export { shippoCreateManifest };
|
|
49
32
|
//# sourceMappingURL=create-manifest.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-manifest.d.mts","names":[],"sources":["../../src/actions/create-manifest.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-manifest.d.mts","names":[],"sources":["../../src/actions/create-manifest.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAa1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-manifest.mjs","names":[],"sources":["../../src/actions/create-manifest.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateManifestInput = z.object({\n address_from: z.string().describe(\"Object ID of the address the manifest will be sent from. Must be a valid address object ID.\"),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs to be included in the manifest. Each ID must be a valid transaction object ID.\").optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format. This is the date that will be printed on the manifest.\"),\n async_manifest: z.boolean().describe(\"If true, the manifest will be created asynchronously. If false or not specified, it will be created synchronously.\").optional(),\n carrier_account: z.string().describe(\"Object ID of the carrier account to be used for this manifest. Must be a valid carrier account object ID.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use for this request.\").optional(),\n}).describe(\"Request model for creating a manifest.\");\nconst ShippoCreateManifest_ManifestDocumentSchema = z.object({\n url: z.string().describe(\"URL where the manifest document can be downloaded.\").nullable().optional(),\n type: z.string().describe(\"Type of document (e.g., 'PDF').\").nullable().optional(),\n}).passthrough().describe(\"Model for manifest document information.\");\nexport const ShippoCreateManifestOutput = z.object({\n status: z.string().describe(\"Status of the manifest. Possible values include 'SUCCESS', 'QUEUED', 'ERROR'.\").nullable(),\n documents: z.array(ShippoCreateManifest_ManifestDocumentSchema).describe(\"List of documents associated with the manifest.\"),\n object_id: z.string().describe(\"Unique identifier for the manifest object.\").nullable(),\n address_from: z.string().describe(\"Object ID of the address the manifest is sent from.\").nullable(),\n object_owner: z.string().describe(\"Owner of the manifest object.\").nullable(),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs included in the manifest.\").nullable().optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format.\").nullable(),\n object_created: z.string().describe(\"Timestamp when the manifest was created in ISO 8601 format.\").nullable(),\n object_updated: z.string().describe(\"Timestamp when the manifest was last updated in ISO 8601 format.\").nullable(),\n carrier_account: z.string().describe(\"Object ID of the carrier account used for this manifest.\").nullable(),\n}).passthrough().describe(\"Response model containing the created manifest.\");\n\nexport const shippoCreateManifest = action(\"SHIPPO_CREATE_MANIFEST\", {\n slug: \"shippo-create-manifest\",\n name: \"Create Manifest\",\n description: \"Tool to create a new shipping manifest with Shippo. Use when you need to generate a manifest document for a carrier with multiple shipments that need to be scanned at pickup.\",\n input: ShippoCreateManifestInput,\n output: ShippoCreateManifestOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-manifest.mjs","names":[],"sources":["../../src/actions/create-manifest.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shippo } from \"../app\";\n\nexport const ShippoCreateManifestInput = z.object({\n address_from: z.string().describe(\"Object ID of the address the manifest will be sent from. Must be a valid address object ID.\"),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs to be included in the manifest. Each ID must be a valid transaction object ID.\").optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format. This is the date that will be printed on the manifest.\"),\n async_manifest: z.boolean().describe(\"If true, the manifest will be created asynchronously. If false or not specified, it will be created synchronously.\").optional(),\n carrier_account: z.string().describe(\"Object ID of the carrier account to be used for this manifest. Must be a valid carrier account object ID.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use for this request.\").optional(),\n}).describe(\"Request model for creating a manifest.\");\nconst ShippoCreateManifest_ManifestDocumentSchema = z.object({\n url: z.string().describe(\"URL where the manifest document can be downloaded.\").nullable().optional(),\n type: z.string().describe(\"Type of document (e.g., 'PDF').\").nullable().optional(),\n}).passthrough().describe(\"Model for manifest document information.\");\nexport const ShippoCreateManifestOutput = z.object({\n status: z.string().describe(\"Status of the manifest. Possible values include 'SUCCESS', 'QUEUED', 'ERROR'.\").nullable(),\n documents: z.array(ShippoCreateManifest_ManifestDocumentSchema).describe(\"List of documents associated with the manifest.\"),\n object_id: z.string().describe(\"Unique identifier for the manifest object.\").nullable(),\n address_from: z.string().describe(\"Object ID of the address the manifest is sent from.\").nullable(),\n object_owner: z.string().describe(\"Owner of the manifest object.\").nullable(),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs included in the manifest.\").nullable().optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format.\").nullable(),\n object_created: z.string().describe(\"Timestamp when the manifest was created in ISO 8601 format.\").nullable(),\n object_updated: z.string().describe(\"Timestamp when the manifest was last updated in ISO 8601 format.\").nullable(),\n carrier_account: z.string().describe(\"Object ID of the carrier account used for this manifest.\").nullable(),\n}).passthrough().describe(\"Response model containing the created manifest.\");\n\nexport const shippoCreateManifest: AppAction<\n typeof ShippoCreateManifestInput,\n typeof ShippoCreateManifestOutput,\n typeof shippo.credential\n> = action(\"SHIPPO_CREATE_MANIFEST\", {\n slug: \"shippo-create-manifest\",\n name: \"Create Manifest\",\n description: \"Tool to create a new shipping manifest with Shippo. Use when you need to generate a manifest document for a carrier with multiple shipments that need to be scanned at pickup.\",\n input: ShippoCreateManifestInput,\n output: ShippoCreateManifestOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CAC/H,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CAC7I,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CAChJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAcpE,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAtBwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACtH,WAAW,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,iDAAiD;EAC1H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACtF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC5E,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACjG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACjH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-address.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantAddressInput = z.object({\n zip: z.string().describe(\"ZIP or postal code. Format varies by country (e.g., 94117 for US, SW1A 1AA for UK). Required for purchase.\").optional(),\n city: z.string().describe(\"City name for the address. Required for purchase.\"),\n name: z.string().describe(\"Full name of the person or business at this address. Required for purchase.\"),\n email: z.string().describe(\"Contact email address. Used for notifications and updates.\").optional(),\n phone: z.string().describe(\"Contact phone number including country code. Format: +[country code] [number].\").optional(),\n state: z.string().describe(\"State, province, or region code. Use 2-letter state codes for US addresses (e.g., CA, NY). Required for purchase for some countries.\").optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").optional(),\n country: z.string().describe(\"2-letter ISO country code (e.g., US, GB, CA). Required field for all addresses.\"),\n street1: z.string().describe(\"Primary street address line. Required for purchase.\"),\n street2: z.string().describe(\"Secondary street address line for apartment, suite, or unit numbers.\").optional(),\n metadata: z.string().describe(\"Custom metadata string to attach to this address for your own reference.\").optional(),\n validate: z.boolean().describe(\"Set to true to validate the address with the carrier before creating. Recommended to catch address errors early.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the address for. This is the merchant's unique identifier in Shippo's system.\"),\n is_residential: z.boolean().describe(\"Set to true if this is a residential address, false for commercial. Affects shipping rates and delivery options.\").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}).describe(\"Request parameters for creating an address for a merchant via Platform API.\");\nconst ShippoCreateMerchantAddress_ValidationMessageSchema = z.object({\n code: z.string().describe(\"Message code or identifier.\").nullable().optional(),\n text: z.string().describe(\"Human-readable validation message text.\").nullable().optional(),\n type: z.string().describe(\"Message type (e.g., 'error', 'warning', 'info').\").nullable().optional(),\n source: z.string().describe(\"Source of the validation message (e.g., 'USPS', 'UPS').\").nullable().optional(),\n}).passthrough().describe(\"Individual validation message from carrier.\");\nconst ShippoCreateMerchantAddress_ValidationResultsSchema = z.object({\n is_valid: z.boolean().describe(\"Whether the address passed validation. True if valid, false if invalid.\").nullable().optional(),\n messages: z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe(\"List of validation messages including errors, warnings, and suggestions.\").nullable().optional(),\n}).passthrough().describe(\"Address validation results from the carrier.\");\nexport const ShippoCreateMerchantAddressOutput = z.object({\n zip: z.string().describe(\"ZIP or postal code.\").nullable().optional(),\n city: z.string().describe(\"City name for the address.\").nullable().optional(),\n name: z.string().describe(\"Full name of the person or business at this address.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number including country code.\").nullable().optional(),\n state: z.string().describe(\"State, province, or region code.\").nullable().optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").nullable().optional(),\n country: z.string().describe(\"2-letter ISO country code.\").nullable().optional(),\n street1: z.string().describe(\"Primary street address line.\").nullable().optional(),\n street2: z.string().describe(\"Secondary street address line.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string attached to this address.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the address object. Use this ID to reference the address in shipments and transactions.\").nullable().optional(),\n is_complete: z.boolean().describe(\"Whether all required fields for the address are present and complete.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the account that owns this address object.\").nullable().optional(),\n is_residential: z.boolean().describe(\"True if this is a residential address, false for commercial.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the address was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the address was last updated.\").nullable().optional(),\n validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the created merchant address.\");\n\nexport const shippoCreateMerchantAddress = action(\"SHIPPO_CREATE_MERCHANT_ADDRESS\", {\n slug: \"shippo-create-merchant-address\",\n name: \"Create Merchant Address\",\n description: \"Tool to create a new address for a merchant using Shippo's Platform API. Use when you need to add an address to a merchant's account for shipping operations. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoCreateMerchantAddressInput,\n output: ShippoCreateMerchantAddressOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-merchant-address.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-address.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shippo } from \"../app\";\n\nexport const ShippoCreateMerchantAddressInput = z.object({\n zip: z.string().describe(\"ZIP or postal code. Format varies by country (e.g., 94117 for US, SW1A 1AA for UK). Required for purchase.\").optional(),\n city: z.string().describe(\"City name for the address. Required for purchase.\"),\n name: z.string().describe(\"Full name of the person or business at this address. Required for purchase.\"),\n email: z.string().describe(\"Contact email address. Used for notifications and updates.\").optional(),\n phone: z.string().describe(\"Contact phone number including country code. Format: +[country code] [number].\").optional(),\n state: z.string().describe(\"State, province, or region code. Use 2-letter state codes for US addresses (e.g., CA, NY). Required for purchase for some countries.\").optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").optional(),\n country: z.string().describe(\"2-letter ISO country code (e.g., US, GB, CA). Required field for all addresses.\"),\n street1: z.string().describe(\"Primary street address line. Required for purchase.\"),\n street2: z.string().describe(\"Secondary street address line for apartment, suite, or unit numbers.\").optional(),\n metadata: z.string().describe(\"Custom metadata string to attach to this address for your own reference.\").optional(),\n validate: z.boolean().describe(\"Set to true to validate the address with the carrier before creating. Recommended to catch address errors early.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the address for. This is the merchant's unique identifier in Shippo's system.\"),\n is_residential: z.boolean().describe(\"Set to true if this is a residential address, false for commercial. Affects shipping rates and delivery options.\").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}).describe(\"Request parameters for creating an address for a merchant via Platform API.\");\nconst ShippoCreateMerchantAddress_ValidationMessageSchema = z.object({\n code: z.string().describe(\"Message code or identifier.\").nullable().optional(),\n text: z.string().describe(\"Human-readable validation message text.\").nullable().optional(),\n type: z.string().describe(\"Message type (e.g., 'error', 'warning', 'info').\").nullable().optional(),\n source: z.string().describe(\"Source of the validation message (e.g., 'USPS', 'UPS').\").nullable().optional(),\n}).passthrough().describe(\"Individual validation message from carrier.\");\nconst ShippoCreateMerchantAddress_ValidationResultsSchema = z.object({\n is_valid: z.boolean().describe(\"Whether the address passed validation. True if valid, false if invalid.\").nullable().optional(),\n messages: z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe(\"List of validation messages including errors, warnings, and suggestions.\").nullable().optional(),\n}).passthrough().describe(\"Address validation results from the carrier.\");\nexport const ShippoCreateMerchantAddressOutput = z.object({\n zip: z.string().describe(\"ZIP or postal code.\").nullable().optional(),\n city: z.string().describe(\"City name for the address.\").nullable().optional(),\n name: z.string().describe(\"Full name of the person or business at this address.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number including country code.\").nullable().optional(),\n state: z.string().describe(\"State, province, or region code.\").nullable().optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").nullable().optional(),\n country: z.string().describe(\"2-letter ISO country code.\").nullable().optional(),\n street1: z.string().describe(\"Primary street address line.\").nullable().optional(),\n street2: z.string().describe(\"Secondary street address line.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string attached to this address.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the address object. Use this ID to reference the address in shipments and transactions.\").nullable().optional(),\n is_complete: z.boolean().describe(\"Whether all required fields for the address are present and complete.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the account that owns this address object.\").nullable().optional(),\n is_residential: z.boolean().describe(\"True if this is a residential address, false for commercial.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the address was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the address was last updated.\").nullable().optional(),\n validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the created merchant address.\");\n\nexport const shippoCreateMerchantAddress: AppAction<\n typeof ShippoCreateMerchantAddressInput,\n typeof ShippoCreateMerchantAddressOutput,\n typeof shippo.credential\n> = action(\"SHIPPO_CREATE_MERCHANT_ADDRESS\", {\n slug: \"shippo-create-merchant-address\",\n name: \"Create Merchant Address\",\n description: \"Tool to create a new address for a merchant using Shippo's Platform API. Use when you need to add an address to a merchant's account for shipping operations. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoCreateMerchantAddressInput,\n output: ShippoCreateMerchantAddressOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KA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AkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shippo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-merchant-address.d.ts
|
|
@@ -46,35 +48,7 @@ declare const ShippoCreateMerchantAddressOutput: z.ZodObject<{
|
|
|
46
48
|
}, z.core.$loose>>>>;
|
|
47
49
|
}, z.core.$loose>>>;
|
|
48
50
|
}, z.core.$loose>;
|
|
49
|
-
declare const shippoCreateMerchantAddress:
|
|
50
|
-
city: string;
|
|
51
|
-
name: string;
|
|
52
|
-
country: string;
|
|
53
|
-
street1: string;
|
|
54
|
-
merchant_id: string;
|
|
55
|
-
zip?: string | undefined;
|
|
56
|
-
email?: string | undefined;
|
|
57
|
-
phone?: string | undefined;
|
|
58
|
-
state?: string | undefined;
|
|
59
|
-
company?: string | undefined;
|
|
60
|
-
street2?: string | undefined;
|
|
61
|
-
metadata?: string | undefined;
|
|
62
|
-
validate?: boolean | undefined;
|
|
63
|
-
is_residential?: boolean | undefined;
|
|
64
|
-
"SHIPPO-API-VERSION"?: string | undefined;
|
|
65
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
66
|
-
connectionId: z.ZodString;
|
|
67
|
-
entityId: z.ZodString;
|
|
68
|
-
instanceId: z.ZodString;
|
|
69
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
-
accessToken: z.ZodString;
|
|
71
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
72
|
-
connectionId: z.ZodString;
|
|
73
|
-
entityId: z.ZodString;
|
|
74
|
-
instanceId: z.ZodString;
|
|
75
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
-
accessToken: z.ZodString;
|
|
77
|
-
}, z.core.$strip>>]>;
|
|
51
|
+
declare const shippoCreateMerchantAddress: AppAction<typeof ShippoCreateMerchantAddressInput, typeof ShippoCreateMerchantAddressOutput, typeof shippo.credential>;
|
|
78
52
|
//#endregion
|
|
79
53
|
export { shippoCreateMerchantAddress };
|
|
80
54
|
//# sourceMappingURL=create-merchant-address.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-address.d.cts","names":[],"sources":["../../src/actions/create-merchant-address.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-merchant-address.d.cts","names":[],"sources":["../../src/actions/create-merchant-address.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA2BhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shippo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-merchant-address.d.ts
|
|
@@ -46,35 +48,7 @@ declare const ShippoCreateMerchantAddressOutput: z.ZodObject<{
|
|
|
46
48
|
}, z.core.$loose>>>>;
|
|
47
49
|
}, z.core.$loose>>>;
|
|
48
50
|
}, z.core.$loose>;
|
|
49
|
-
declare const shippoCreateMerchantAddress:
|
|
50
|
-
city: string;
|
|
51
|
-
name: string;
|
|
52
|
-
country: string;
|
|
53
|
-
street1: string;
|
|
54
|
-
merchant_id: string;
|
|
55
|
-
zip?: string | undefined;
|
|
56
|
-
email?: string | undefined;
|
|
57
|
-
phone?: string | undefined;
|
|
58
|
-
state?: string | undefined;
|
|
59
|
-
company?: string | undefined;
|
|
60
|
-
street2?: string | undefined;
|
|
61
|
-
metadata?: string | undefined;
|
|
62
|
-
validate?: boolean | undefined;
|
|
63
|
-
is_residential?: boolean | undefined;
|
|
64
|
-
"SHIPPO-API-VERSION"?: string | undefined;
|
|
65
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
66
|
-
connectionId: z.ZodString;
|
|
67
|
-
entityId: z.ZodString;
|
|
68
|
-
instanceId: z.ZodString;
|
|
69
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
-
accessToken: z.ZodString;
|
|
71
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
72
|
-
connectionId: z.ZodString;
|
|
73
|
-
entityId: z.ZodString;
|
|
74
|
-
instanceId: z.ZodString;
|
|
75
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
-
accessToken: z.ZodString;
|
|
77
|
-
}, z.core.$strip>>]>;
|
|
51
|
+
declare const shippoCreateMerchantAddress: AppAction<typeof ShippoCreateMerchantAddressInput, typeof ShippoCreateMerchantAddressOutput, typeof shippo.credential>;
|
|
78
52
|
//#endregion
|
|
79
53
|
export { shippoCreateMerchantAddress };
|
|
80
54
|
//# sourceMappingURL=create-merchant-address.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-address.d.mts","names":[],"sources":["../../src/actions/create-merchant-address.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-merchant-address.d.mts","names":[],"sources":["../../src/actions/create-merchant-address.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cA2BhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-address.mjs","names":[],"sources":["../../src/actions/create-merchant-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantAddressInput = z.object({\n zip: z.string().describe(\"ZIP or postal code. Format varies by country (e.g., 94117 for US, SW1A 1AA for UK). Required for purchase.\").optional(),\n city: z.string().describe(\"City name for the address. Required for purchase.\"),\n name: z.string().describe(\"Full name of the person or business at this address. Required for purchase.\"),\n email: z.string().describe(\"Contact email address. Used for notifications and updates.\").optional(),\n phone: z.string().describe(\"Contact phone number including country code. Format: +[country code] [number].\").optional(),\n state: z.string().describe(\"State, province, or region code. Use 2-letter state codes for US addresses (e.g., CA, NY). Required for purchase for some countries.\").optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").optional(),\n country: z.string().describe(\"2-letter ISO country code (e.g., US, GB, CA). Required field for all addresses.\"),\n street1: z.string().describe(\"Primary street address line. Required for purchase.\"),\n street2: z.string().describe(\"Secondary street address line for apartment, suite, or unit numbers.\").optional(),\n metadata: z.string().describe(\"Custom metadata string to attach to this address for your own reference.\").optional(),\n validate: z.boolean().describe(\"Set to true to validate the address with the carrier before creating. Recommended to catch address errors early.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the address for. This is the merchant's unique identifier in Shippo's system.\"),\n is_residential: z.boolean().describe(\"Set to true if this is a residential address, false for commercial. Affects shipping rates and delivery options.\").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}).describe(\"Request parameters for creating an address for a merchant via Platform API.\");\nconst ShippoCreateMerchantAddress_ValidationMessageSchema = z.object({\n code: z.string().describe(\"Message code or identifier.\").nullable().optional(),\n text: z.string().describe(\"Human-readable validation message text.\").nullable().optional(),\n type: z.string().describe(\"Message type (e.g., 'error', 'warning', 'info').\").nullable().optional(),\n source: z.string().describe(\"Source of the validation message (e.g., 'USPS', 'UPS').\").nullable().optional(),\n}).passthrough().describe(\"Individual validation message from carrier.\");\nconst ShippoCreateMerchantAddress_ValidationResultsSchema = z.object({\n is_valid: z.boolean().describe(\"Whether the address passed validation. True if valid, false if invalid.\").nullable().optional(),\n messages: z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe(\"List of validation messages including errors, warnings, and suggestions.\").nullable().optional(),\n}).passthrough().describe(\"Address validation results from the carrier.\");\nexport const ShippoCreateMerchantAddressOutput = z.object({\n zip: z.string().describe(\"ZIP or postal code.\").nullable().optional(),\n city: z.string().describe(\"City name for the address.\").nullable().optional(),\n name: z.string().describe(\"Full name of the person or business at this address.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number including country code.\").nullable().optional(),\n state: z.string().describe(\"State, province, or region code.\").nullable().optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").nullable().optional(),\n country: z.string().describe(\"2-letter ISO country code.\").nullable().optional(),\n street1: z.string().describe(\"Primary street address line.\").nullable().optional(),\n street2: z.string().describe(\"Secondary street address line.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string attached to this address.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the address object. Use this ID to reference the address in shipments and transactions.\").nullable().optional(),\n is_complete: z.boolean().describe(\"Whether all required fields for the address are present and complete.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the account that owns this address object.\").nullable().optional(),\n is_residential: z.boolean().describe(\"True if this is a residential address, false for commercial.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the address was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the address was last updated.\").nullable().optional(),\n validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the created merchant address.\");\n\nexport const shippoCreateMerchantAddress = action(\"SHIPPO_CREATE_MERCHANT_ADDRESS\", {\n slug: \"shippo-create-merchant-address\",\n name: \"Create Merchant Address\",\n description: \"Tool to create a new address for a merchant using Shippo's Platform API. Use when you need to add an address to a merchant's account for shipping operations. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoCreateMerchantAddressInput,\n output: ShippoCreateMerchantAddressOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-merchant-address.mjs","names":[],"sources":["../../src/actions/create-merchant-address.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shippo } from \"../app\";\n\nexport const ShippoCreateMerchantAddressInput = z.object({\n zip: z.string().describe(\"ZIP or postal code. Format varies by country (e.g., 94117 for US, SW1A 1AA for UK). Required for purchase.\").optional(),\n city: z.string().describe(\"City name for the address. Required for purchase.\"),\n name: z.string().describe(\"Full name of the person or business at this address. Required for purchase.\"),\n email: z.string().describe(\"Contact email address. Used for notifications and updates.\").optional(),\n phone: z.string().describe(\"Contact phone number including country code. Format: +[country code] [number].\").optional(),\n state: z.string().describe(\"State, province, or region code. Use 2-letter state codes for US addresses (e.g., CA, NY). Required for purchase for some countries.\").optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").optional(),\n country: z.string().describe(\"2-letter ISO country code (e.g., US, GB, CA). Required field for all addresses.\"),\n street1: z.string().describe(\"Primary street address line. Required for purchase.\"),\n street2: z.string().describe(\"Secondary street address line for apartment, suite, or unit numbers.\").optional(),\n metadata: z.string().describe(\"Custom metadata string to attach to this address for your own reference.\").optional(),\n validate: z.boolean().describe(\"Set to true to validate the address with the carrier before creating. Recommended to catch address errors early.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the address for. This is the merchant's unique identifier in Shippo's system.\"),\n is_residential: z.boolean().describe(\"Set to true if this is a residential address, false for commercial. Affects shipping rates and delivery options.\").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}).describe(\"Request parameters for creating an address for a merchant via Platform API.\");\nconst ShippoCreateMerchantAddress_ValidationMessageSchema = z.object({\n code: z.string().describe(\"Message code or identifier.\").nullable().optional(),\n text: z.string().describe(\"Human-readable validation message text.\").nullable().optional(),\n type: z.string().describe(\"Message type (e.g., 'error', 'warning', 'info').\").nullable().optional(),\n source: z.string().describe(\"Source of the validation message (e.g., 'USPS', 'UPS').\").nullable().optional(),\n}).passthrough().describe(\"Individual validation message from carrier.\");\nconst ShippoCreateMerchantAddress_ValidationResultsSchema = z.object({\n is_valid: z.boolean().describe(\"Whether the address passed validation. True if valid, false if invalid.\").nullable().optional(),\n messages: z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe(\"List of validation messages including errors, warnings, and suggestions.\").nullable().optional(),\n}).passthrough().describe(\"Address validation results from the carrier.\");\nexport const ShippoCreateMerchantAddressOutput = z.object({\n zip: z.string().describe(\"ZIP or postal code.\").nullable().optional(),\n city: z.string().describe(\"City name for the address.\").nullable().optional(),\n name: z.string().describe(\"Full name of the person or business at this address.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number including country code.\").nullable().optional(),\n state: z.string().describe(\"State, province, or region code.\").nullable().optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").nullable().optional(),\n country: z.string().describe(\"2-letter ISO country code.\").nullable().optional(),\n street1: z.string().describe(\"Primary street address line.\").nullable().optional(),\n street2: z.string().describe(\"Secondary street address line.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string attached to this address.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the address object. Use this ID to reference the address in shipments and transactions.\").nullable().optional(),\n is_complete: z.boolean().describe(\"Whether all required fields for the address are present and complete.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the account that owns this address object.\").nullable().optional(),\n is_residential: z.boolean().describe(\"True if this is a residential address, false for commercial.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the address was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the address was last updated.\").nullable().optional(),\n validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the created merchant address.\");\n\nexport const shippoCreateMerchantAddress: AppAction<\n typeof ShippoCreateMerchantAddressInput,\n typeof ShippoCreateMerchantAddressOutput,\n typeof shippo.credential\n> = action(\"SHIPPO_CREATE_MERCHANT_ADDRESS\", {\n slug: \"shippo-create-merchant-address\",\n name: \"Create Merchant Address\",\n description: \"Tool to create a new address for a merchant using Shippo's Platform API. Use when you need to add an address to a merchant's account for shipping operations. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoCreateMerchantAddressInput,\n output: ShippoCreateMerchantAddressOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CACvG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC5K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC9G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,QAAQ,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AAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,oBAAoB,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-batch.cjs","names":["z","action"],"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}).passthrough().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}).passthrough().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.record(z.string(), z.unknown())).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}).passthrough().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}).passthrough().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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-merchant-batch.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-batch.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shippo } from \"../app\";\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}).passthrough().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}).passthrough().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.record(z.string(), z.unknown())).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}).passthrough().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}).passthrough().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}).passthrough().describe(\"Response model for a created merchant batch.\");\n\nexport const shippoCreateMerchantBatch: AppAction<\n typeof ShippoCreateMerchantBatchInput,\n typeof ShippoCreateMerchantBatchOutput,\n typeof shippo.credential\n> = 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":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACvJ,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAe;EAAO;EAAe;EAAW;EAAW;EAAU;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxK,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAClC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EACvH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;EAC7K,oBAAoBA,I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AS;CAClF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACjG,gBAAgB,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAClF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACpG,gBAAgB,8CAA8C,SAAS;CACvE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC9G,iBAAiB,qDAAqD,SAAS;CAC/E,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9H,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shippo } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-merchant-batch.d.ts
|
|
@@ -28,9 +30,9 @@ declare const ShippoCreateMerchantBatchInput: z.ZodObject<{
|
|
|
28
30
|
declare const ShippoCreateMerchantBatchOutput: z.ZodObject<{
|
|
29
31
|
test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
32
|
status: z.ZodNullable<z.ZodEnum<{
|
|
31
|
-
INVALID: "INVALID";
|
|
32
|
-
VALID: "VALID";
|
|
33
33
|
VALIDATING: "VALIDATING";
|
|
34
|
+
VALID: "VALID";
|
|
35
|
+
INVALID: "INVALID";
|
|
34
36
|
PURCHASING: "PURCHASING";
|
|
35
37
|
PURCHASED: "PURCHASED";
|
|
36
38
|
}>>;
|
|
@@ -70,33 +72,7 @@ declare const ShippoCreateMerchantBatchOutput: z.ZodObject<{
|
|
|
70
72
|
default_carrier_account: z.ZodNullable<z.ZodString>;
|
|
71
73
|
default_servicelevel_token: z.ZodNullable<z.ZodString>;
|
|
72
74
|
}, z.core.$loose>;
|
|
73
|
-
declare const shippoCreateMerchantBatch:
|
|
74
|
-
merchant_id: string;
|
|
75
|
-
batch_shipments: {
|
|
76
|
-
[x: string]: unknown;
|
|
77
|
-
shipment: string;
|
|
78
|
-
metadata?: string | undefined;
|
|
79
|
-
carrier_account?: string | undefined;
|
|
80
|
-
servicelevel_token?: string | undefined;
|
|
81
|
-
}[];
|
|
82
|
-
default_carrier_account: string;
|
|
83
|
-
default_servicelevel_token: string;
|
|
84
|
-
metadata?: string | undefined;
|
|
85
|
-
label_filetype?: "PNG" | "PNG_2.3x7.5" | "PDF" | "PDF_2.3x7.5" | "PDF_4x6" | "PDF_4x8" | "PDF_A4" | "PDF_A6" | "ZPLII" | undefined;
|
|
86
|
-
shippo_api_version?: string | undefined;
|
|
87
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
88
|
-
connectionId: z.ZodString;
|
|
89
|
-
entityId: z.ZodString;
|
|
90
|
-
instanceId: z.ZodString;
|
|
91
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
accessToken: z.ZodString;
|
|
93
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
94
|
-
connectionId: z.ZodString;
|
|
95
|
-
entityId: z.ZodString;
|
|
96
|
-
instanceId: z.ZodString;
|
|
97
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
-
accessToken: z.ZodString;
|
|
99
|
-
}, z.core.$strip>>]>;
|
|
75
|
+
declare const shippoCreateMerchantBatch: AppAction<typeof ShippoCreateMerchantBatchInput, typeof ShippoCreateMerchantBatchOutput, typeof shippo.credential>;
|
|
100
76
|
//#endregion
|
|
101
77
|
export { shippoCreateMerchantBatch };
|
|
102
78
|
//# sourceMappingURL=create-merchant-batch.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-batch.d.cts","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-merchant-batch.d.cts","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgB/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { shippo } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-merchant-batch.d.ts
|
|
@@ -28,9 +30,9 @@ declare const ShippoCreateMerchantBatchInput: z.ZodObject<{
|
|
|
28
30
|
declare const ShippoCreateMerchantBatchOutput: z.ZodObject<{
|
|
29
31
|
test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
32
|
status: z.ZodNullable<z.ZodEnum<{
|
|
31
|
-
INVALID: "INVALID";
|
|
32
|
-
VALID: "VALID";
|
|
33
33
|
VALIDATING: "VALIDATING";
|
|
34
|
+
VALID: "VALID";
|
|
35
|
+
INVALID: "INVALID";
|
|
34
36
|
PURCHASING: "PURCHASING";
|
|
35
37
|
PURCHASED: "PURCHASED";
|
|
36
38
|
}>>;
|
|
@@ -70,33 +72,7 @@ declare const ShippoCreateMerchantBatchOutput: z.ZodObject<{
|
|
|
70
72
|
default_carrier_account: z.ZodNullable<z.ZodString>;
|
|
71
73
|
default_servicelevel_token: z.ZodNullable<z.ZodString>;
|
|
72
74
|
}, z.core.$loose>;
|
|
73
|
-
declare const shippoCreateMerchantBatch:
|
|
74
|
-
merchant_id: string;
|
|
75
|
-
batch_shipments: {
|
|
76
|
-
[x: string]: unknown;
|
|
77
|
-
shipment: string;
|
|
78
|
-
metadata?: string | undefined;
|
|
79
|
-
carrier_account?: string | undefined;
|
|
80
|
-
servicelevel_token?: string | undefined;
|
|
81
|
-
}[];
|
|
82
|
-
default_carrier_account: string;
|
|
83
|
-
default_servicelevel_token: string;
|
|
84
|
-
metadata?: string | undefined;
|
|
85
|
-
label_filetype?: "PNG" | "PNG_2.3x7.5" | "PDF" | "PDF_2.3x7.5" | "PDF_4x6" | "PDF_4x8" | "PDF_A4" | "PDF_A6" | "ZPLII" | undefined;
|
|
86
|
-
shippo_api_version?: string | undefined;
|
|
87
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
88
|
-
connectionId: z.ZodString;
|
|
89
|
-
entityId: z.ZodString;
|
|
90
|
-
instanceId: z.ZodString;
|
|
91
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
accessToken: z.ZodString;
|
|
93
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
94
|
-
connectionId: z.ZodString;
|
|
95
|
-
entityId: z.ZodString;
|
|
96
|
-
instanceId: z.ZodString;
|
|
97
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
98
|
-
accessToken: z.ZodString;
|
|
99
|
-
}, z.core.$strip>>]>;
|
|
75
|
+
declare const shippoCreateMerchantBatch: AppAction<typeof ShippoCreateMerchantBatchInput, typeof ShippoCreateMerchantBatchOutput, typeof shippo.credential>;
|
|
100
76
|
//#endregion
|
|
101
77
|
export { shippoCreateMerchantBatch };
|
|
102
78
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"create-merchant-batch.d.mts","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiC9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgB/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -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 = 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}).passthrough().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}).passthrough().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.record(z.string(), z.unknown())).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}).passthrough().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}).passthrough().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}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-merchant-batch.mjs","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { shippo } from \"../app\";\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}).passthrough().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}).passthrough().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.record(z.string(), z.unknown())).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}).passthrough().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}).passthrough().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}).passthrough().describe(\"Response model for a created merchant batch.\");\n\nexport const shippoCreateMerchantBatch: AppAction<\n typeof ShippoCreateMerchantBatchInput,\n typeof ShippoCreateMerchantBatchOutput,\n typeof shippo.credential\n> = 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":";;;;AAMA,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,UA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