@keystrokehq/ramp 0.0.16 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -54
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-department.cjs +19 -0
- package/dist/actions/create-department.cjs.map +1 -0
- package/dist/actions/create-department.d.cts +9 -0
- package/dist/actions/create-department.d.cts.map +1 -0
- package/dist/actions/create-department.d.mts +9 -0
- package/dist/actions/create-department.d.mts.map +1 -0
- package/dist/actions/create-department.mjs +16 -0
- package/dist/actions/create-department.mjs.map +1 -0
- package/dist/actions/create-inventory-item-accounting-field.cjs +25 -0
- package/dist/actions/create-inventory-item-accounting-field.cjs.map +1 -0
- package/dist/actions/create-inventory-item-accounting-field.d.cts +9 -0
- package/dist/actions/create-inventory-item-accounting-field.d.cts.map +1 -0
- package/dist/actions/create-inventory-item-accounting-field.d.mts +9 -0
- package/dist/actions/create-inventory-item-accounting-field.d.mts.map +1 -0
- package/dist/actions/create-inventory-item-accounting-field.mjs +22 -0
- package/dist/actions/create-inventory-item-accounting-field.mjs.map +1 -0
- package/dist/actions/create-memo.cjs +23 -0
- package/dist/actions/create-memo.cjs.map +1 -0
- package/dist/actions/create-memo.d.cts +9 -0
- package/dist/actions/create-memo.d.cts.map +1 -0
- package/dist/actions/create-memo.d.mts +9 -0
- package/dist/actions/create-memo.d.mts.map +1 -0
- package/dist/actions/create-memo.mjs +20 -0
- package/dist/actions/create-memo.mjs.map +1 -0
- package/dist/actions/create-mileage-reimbursement.cjs +140 -0
- package/dist/actions/create-mileage-reimbursement.cjs.map +1 -0
- package/dist/actions/create-mileage-reimbursement.d.cts +9 -0
- package/dist/actions/create-mileage-reimbursement.d.cts.map +1 -0
- package/dist/actions/create-mileage-reimbursement.d.mts +9 -0
- package/dist/actions/create-mileage-reimbursement.d.mts.map +1 -0
- package/dist/actions/create-mileage-reimbursement.mjs +139 -0
- package/dist/actions/create-mileage-reimbursement.mjs.map +1 -0
- package/dist/actions/create-new-custom-accounting-field.cjs +45 -0
- package/dist/actions/create-new-custom-accounting-field.cjs.map +1 -0
- package/dist/actions/create-new-custom-accounting-field.d.cts +9 -0
- package/dist/actions/create-new-custom-accounting-field.d.cts.map +1 -0
- package/dist/actions/create-new-custom-accounting-field.d.mts +9 -0
- package/dist/actions/create-new-custom-accounting-field.d.mts.map +1 -0
- package/dist/actions/create-new-custom-accounting-field.mjs +42 -0
- package/dist/actions/create-new-custom-accounting-field.mjs.map +1 -0
- package/dist/actions/create-tax-code-accounting-field.cjs +25 -0
- package/dist/actions/create-tax-code-accounting-field.cjs.map +1 -0
- package/dist/actions/create-tax-code-accounting-field.d.cts +9 -0
- package/dist/actions/create-tax-code-accounting-field.d.cts.map +1 -0
- package/dist/actions/create-tax-code-accounting-field.d.mts +9 -0
- package/dist/actions/create-tax-code-accounting-field.d.mts.map +1 -0
- package/dist/actions/create-tax-code-accounting-field.mjs +22 -0
- package/dist/actions/create-tax-code-accounting-field.mjs.map +1 -0
- package/dist/actions/create-user-invite.cjs +34 -0
- package/dist/actions/create-user-invite.cjs.map +1 -0
- package/dist/actions/create-user-invite.d.cts +9 -0
- package/dist/actions/create-user-invite.d.cts.map +1 -0
- package/dist/actions/create-user-invite.d.mts +9 -0
- package/dist/actions/create-user-invite.d.mts.map +1 -0
- package/dist/actions/create-user-invite.mjs +31 -0
- package/dist/actions/create-user-invite.mjs.map +1 -0
- package/dist/actions/create-webhook-subscription.cjs +58 -0
- package/dist/actions/create-webhook-subscription.cjs.map +1 -0
- package/dist/actions/create-webhook-subscription.d.cts +9 -0
- package/dist/actions/create-webhook-subscription.d.cts.map +1 -0
- package/dist/actions/create-webhook-subscription.d.mts +9 -0
- package/dist/actions/create-webhook-subscription.d.mts.map +1 -0
- package/dist/actions/create-webhook-subscription.mjs +57 -0
- package/dist/actions/create-webhook-subscription.mjs.map +1 -0
- package/dist/actions/deactivate-user.cjs +16 -0
- package/dist/actions/deactivate-user.cjs.map +1 -0
- package/dist/actions/deactivate-user.d.cts +9 -0
- package/dist/actions/deactivate-user.d.cts.map +1 -0
- package/dist/actions/deactivate-user.d.mts +9 -0
- package/dist/actions/deactivate-user.d.mts.map +1 -0
- package/dist/actions/deactivate-user.mjs +13 -0
- package/dist/actions/deactivate-user.mjs.map +1 -0
- package/dist/actions/delete-accounting-account.cjs +16 -0
- package/dist/actions/delete-accounting-account.cjs.map +1 -0
- package/dist/actions/delete-accounting-account.d.cts +9 -0
- package/dist/actions/delete-accounting-account.d.cts.map +1 -0
- package/dist/actions/delete-accounting-account.d.mts +9 -0
- package/dist/actions/delete-accounting-account.d.mts.map +1 -0
- package/dist/actions/delete-accounting-account.mjs +13 -0
- package/dist/actions/delete-accounting-account.mjs.map +1 -0
- package/dist/actions/delete-accounting-connection.cjs +16 -0
- package/dist/actions/delete-accounting-connection.cjs.map +1 -0
- package/dist/actions/delete-accounting-connection.d.cts +9 -0
- package/dist/actions/delete-accounting-connection.d.cts.map +1 -0
- package/dist/actions/delete-accounting-connection.d.mts +9 -0
- package/dist/actions/delete-accounting-connection.d.mts.map +1 -0
- package/dist/actions/delete-accounting-connection.mjs +13 -0
- package/dist/actions/delete-accounting-connection.mjs.map +1 -0
- package/dist/actions/delete-accounting-fields.cjs +16 -0
- package/dist/actions/delete-accounting-fields.cjs.map +1 -0
- package/dist/actions/delete-accounting-fields.d.cts +9 -0
- package/dist/actions/delete-accounting-fields.d.cts.map +1 -0
- package/dist/actions/delete-accounting-fields.d.mts +9 -0
- package/dist/actions/delete-accounting-fields.d.mts.map +1 -0
- package/dist/actions/delete-accounting-fields.mjs +13 -0
- package/dist/actions/delete-accounting-fields.mjs.map +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.cjs +16 -0
- package/dist/actions/delete-accounting-inventory-item-options.cjs.map +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.d.cts +9 -0
- package/dist/actions/delete-accounting-inventory-item-options.d.cts.map +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.d.mts +9 -0
- package/dist/actions/delete-accounting-inventory-item-options.d.mts.map +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.mjs +13 -0
- package/dist/actions/delete-accounting-inventory-item-options.mjs.map +1 -0
- package/dist/actions/delete-accounting-tax-code-options.cjs +16 -0
- package/dist/actions/delete-accounting-tax-code-options.cjs.map +1 -0
- package/dist/actions/delete-accounting-tax-code-options.d.cts +9 -0
- package/dist/actions/delete-accounting-tax-code-options.d.cts.map +1 -0
- package/dist/actions/delete-accounting-tax-code-options.d.mts +9 -0
- package/dist/actions/delete-accounting-tax-code-options.d.mts.map +1 -0
- package/dist/actions/delete-accounting-tax-code-options.mjs +13 -0
- package/dist/actions/delete-accounting-tax-code-options.mjs.map +1 -0
- package/dist/actions/delete-accounting-tax-code.cjs +16 -0
- package/dist/actions/delete-accounting-tax-code.cjs.map +1 -0
- package/dist/actions/delete-accounting-tax-code.d.cts +9 -0
- package/dist/actions/delete-accounting-tax-code.d.cts.map +1 -0
- package/dist/actions/delete-accounting-tax-code.d.mts +9 -0
- package/dist/actions/delete-accounting-tax-code.d.mts.map +1 -0
- package/dist/actions/delete-accounting-tax-code.mjs +13 -0
- package/dist/actions/delete-accounting-tax-code.mjs.map +1 -0
- package/dist/actions/delete-accounting-tax-rates.cjs +19 -0
- package/dist/actions/delete-accounting-tax-rates.cjs.map +1 -0
- package/dist/actions/delete-accounting-tax-rates.d.cts +9 -0
- package/dist/actions/delete-accounting-tax-rates.d.cts.map +1 -0
- package/dist/actions/delete-accounting-tax-rates.d.mts +9 -0
- package/dist/actions/delete-accounting-tax-rates.d.mts.map +1 -0
- package/dist/actions/delete-accounting-tax-rates.mjs +16 -0
- package/dist/actions/delete-accounting-tax-rates.mjs.map +1 -0
- package/dist/actions/delete-accounting-vendors.cjs +16 -0
- package/dist/actions/delete-accounting-vendors.cjs.map +1 -0
- package/dist/actions/delete-accounting-vendors.d.cts +9 -0
- package/dist/actions/delete-accounting-vendors.d.cts.map +1 -0
- package/dist/actions/delete-accounting-vendors.d.mts +9 -0
- package/dist/actions/delete-accounting-vendors.d.mts.map +1 -0
- package/dist/actions/delete-accounting-vendors.mjs +13 -0
- package/dist/actions/delete-accounting-vendors.mjs.map +1 -0
- package/dist/actions/delete-custom-field-option.cjs +16 -0
- package/dist/actions/delete-custom-field-option.cjs.map +1 -0
- package/dist/actions/delete-custom-field-option.d.cts +9 -0
- package/dist/actions/delete-custom-field-option.d.cts.map +1 -0
- package/dist/actions/delete-custom-field-option.d.mts +9 -0
- package/dist/actions/delete-custom-field-option.d.mts.map +1 -0
- package/dist/actions/delete-custom-field-option.mjs +13 -0
- package/dist/actions/delete-custom-field-option.mjs.map +1 -0
- package/dist/actions/delete-inventory-item-field.cjs +16 -0
- package/dist/actions/delete-inventory-item-field.cjs.map +1 -0
- package/dist/actions/delete-inventory-item-field.d.cts +9 -0
- package/dist/actions/delete-inventory-item-field.d.cts.map +1 -0
- package/dist/actions/delete-inventory-item-field.d.mts +9 -0
- package/dist/actions/delete-inventory-item-field.d.mts.map +1 -0
- package/dist/actions/delete-inventory-item-field.mjs +13 -0
- package/dist/actions/delete-inventory-item-field.mjs.map +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.cjs +76 -0
- package/dist/actions/delete-spend-allocation-delete-users.cjs.map +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.d.cts +9 -0
- package/dist/actions/delete-spend-allocation-delete-users.d.cts.map +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.d.mts +9 -0
- package/dist/actions/delete-spend-allocation-delete-users.d.mts.map +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.mjs +75 -0
- package/dist/actions/delete-spend-allocation-delete-users.mjs.map +1 -0
- package/dist/actions/delete-webhook.cjs +16 -0
- package/dist/actions/delete-webhook.cjs.map +1 -0
- package/dist/actions/delete-webhook.d.cts +9 -0
- package/dist/actions/delete-webhook.d.cts.map +1 -0
- package/dist/actions/delete-webhook.d.mts +9 -0
- package/dist/actions/delete-webhook.d.mts.map +1 -0
- package/dist/actions/delete-webhook.mjs +13 -0
- package/dist/actions/delete-webhook.mjs.map +1 -0
- package/dist/actions/fetch-accounting-account.cjs +36 -0
- package/dist/actions/fetch-accounting-account.cjs.map +1 -0
- package/dist/actions/fetch-accounting-account.d.cts +9 -0
- package/dist/actions/fetch-accounting-account.d.cts.map +1 -0
- package/dist/actions/fetch-accounting-account.d.mts +9 -0
- package/dist/actions/fetch-accounting-account.d.mts.map +1 -0
- package/dist/actions/fetch-accounting-account.mjs +35 -0
- package/dist/actions/fetch-accounting-account.mjs.map +1 -0
- package/dist/actions/fetch-accounting-vendor.cjs +36 -0
- package/dist/actions/fetch-accounting-vendor.cjs.map +1 -0
- package/dist/actions/fetch-accounting-vendor.d.cts +9 -0
- package/dist/actions/fetch-accounting-vendor.d.cts.map +1 -0
- package/dist/actions/fetch-accounting-vendor.d.mts +9 -0
- package/dist/actions/fetch-accounting-vendor.d.mts.map +1 -0
- package/dist/actions/fetch-accounting-vendor.mjs +35 -0
- package/dist/actions/fetch-accounting-vendor.mjs.map +1 -0
- package/dist/actions/fetch-custom-accounting-field.cjs +26 -0
- package/dist/actions/fetch-custom-accounting-field.cjs.map +1 -0
- package/dist/actions/fetch-custom-accounting-field.d.cts +9 -0
- package/dist/actions/fetch-custom-accounting-field.d.cts.map +1 -0
- package/dist/actions/fetch-custom-accounting-field.d.mts +9 -0
- package/dist/actions/fetch-custom-accounting-field.d.mts.map +1 -0
- package/dist/actions/fetch-custom-accounting-field.mjs +25 -0
- package/dist/actions/fetch-custom-accounting-field.mjs.map +1 -0
- package/dist/actions/get-accounting-accounts.cjs +45 -0
- package/dist/actions/get-accounting-accounts.cjs.map +1 -0
- package/dist/actions/get-accounting-accounts.d.cts +9 -0
- package/dist/actions/get-accounting-accounts.d.cts.map +1 -0
- package/dist/actions/get-accounting-accounts.d.mts +9 -0
- package/dist/actions/get-accounting-accounts.d.mts.map +1 -0
- package/dist/actions/get-accounting-accounts.mjs +44 -0
- package/dist/actions/get-accounting-accounts.mjs.map +1 -0
- package/dist/actions/get-accounting-all-connections.cjs +23 -0
- package/dist/actions/get-accounting-all-connections.cjs.map +1 -0
- package/dist/actions/get-accounting-all-connections.d.cts +9 -0
- package/dist/actions/get-accounting-all-connections.d.cts.map +1 -0
- package/dist/actions/get-accounting-all-connections.d.mts +9 -0
- package/dist/actions/get-accounting-all-connections.d.mts.map +1 -0
- package/dist/actions/get-accounting-all-connections.mjs +22 -0
- package/dist/actions/get-accounting-all-connections.mjs.map +1 -0
- package/dist/actions/get-accounting-connection-by-id.cjs +41 -0
- package/dist/actions/get-accounting-connection-by-id.cjs.map +1 -0
- package/dist/actions/get-accounting-connection-by-id.d.cts +9 -0
- package/dist/actions/get-accounting-connection-by-id.d.cts.map +1 -0
- package/dist/actions/get-accounting-connection-by-id.d.mts +9 -0
- package/dist/actions/get-accounting-connection-by-id.d.mts.map +1 -0
- package/dist/actions/get-accounting-connection-by-id.mjs +40 -0
- package/dist/actions/get-accounting-connection-by-id.mjs.map +1 -0
- package/dist/actions/get-accounting-connection.cjs +27 -0
- package/dist/actions/get-accounting-connection.cjs.map +1 -0
- package/dist/actions/get-accounting-connection.d.cts +9 -0
- package/dist/actions/get-accounting-connection.d.cts.map +1 -0
- package/dist/actions/get-accounting-connection.d.mts +9 -0
- package/dist/actions/get-accounting-connection.d.mts.map +1 -0
- package/dist/actions/get-accounting-connection.mjs +26 -0
- package/dist/actions/get-accounting-connection.mjs.map +1 -0
- package/dist/actions/get-accounting-fields.cjs +29 -0
- package/dist/actions/get-accounting-fields.cjs.map +1 -0
- package/dist/actions/get-accounting-fields.d.cts +9 -0
- package/dist/actions/get-accounting-fields.d.cts.map +1 -0
- package/dist/actions/get-accounting-fields.d.mts +9 -0
- package/dist/actions/get-accounting-fields.d.mts.map +1 -0
- package/dist/actions/get-accounting-fields.mjs +28 -0
- package/dist/actions/get-accounting-fields.mjs.map +1 -0
- package/dist/actions/get-accounting-vendors.cjs +29 -0
- package/dist/actions/get-accounting-vendors.cjs.map +1 -0
- package/dist/actions/get-accounting-vendors.d.cts +9 -0
- package/dist/actions/get-accounting-vendors.d.cts.map +1 -0
- package/dist/actions/get-accounting-vendors.d.mts +9 -0
- package/dist/actions/get-accounting-vendors.d.mts.map +1 -0
- package/dist/actions/get-accounting-vendors.mjs +28 -0
- package/dist/actions/get-accounting-vendors.mjs.map +1 -0
- package/dist/actions/get-all-transactions.cjs +75 -0
- package/dist/actions/get-all-transactions.cjs.map +1 -0
- package/dist/actions/get-all-transactions.d.cts +9 -0
- package/dist/actions/get-all-transactions.d.cts.map +1 -0
- package/dist/actions/get-all-transactions.d.mts +9 -0
- package/dist/actions/get-all-transactions.d.mts.map +1 -0
- package/dist/actions/get-all-transactions.mjs +74 -0
- package/dist/actions/get-all-transactions.mjs.map +1 -0
- package/dist/actions/get-card-vault-resource.cjs +20 -0
- package/dist/actions/get-card-vault-resource.cjs.map +1 -0
- package/dist/actions/get-card-vault-resource.d.cts +9 -0
- package/dist/actions/get-card-vault-resource.d.cts.map +1 -0
- package/dist/actions/get-card-vault-resource.d.mts +9 -0
- package/dist/actions/get-card-vault-resource.d.mts.map +1 -0
- package/dist/actions/get-card-vault-resource.mjs +17 -0
- package/dist/actions/get-card-vault-resource.mjs.map +1 -0
- package/dist/actions/get-card.cjs +61 -0
- package/dist/actions/get-card.cjs.map +1 -0
- package/dist/actions/get-card.d.cts +9 -0
- package/dist/actions/get-card.d.cts.map +1 -0
- package/dist/actions/get-card.d.mts +9 -0
- package/dist/actions/get-card.d.mts.map +1 -0
- package/dist/actions/get-card.mjs +60 -0
- package/dist/actions/get-card.mjs.map +1 -0
- package/dist/actions/get-custom-field-option.cjs +28 -0
- package/dist/actions/get-custom-field-option.cjs.map +1 -0
- package/dist/actions/get-custom-field-option.d.cts +9 -0
- package/dist/actions/get-custom-field-option.d.cts.map +1 -0
- package/dist/actions/get-custom-field-option.d.mts +9 -0
- package/dist/actions/get-custom-field-option.d.mts.map +1 -0
- package/dist/actions/get-custom-field-option.mjs +25 -0
- package/dist/actions/get-custom-field-option.mjs.map +1 -0
- package/dist/actions/get-department.cjs +19 -0
- package/dist/actions/get-department.cjs.map +1 -0
- package/dist/actions/get-department.d.cts +9 -0
- package/dist/actions/get-department.d.cts.map +1 -0
- package/dist/actions/get-department.d.mts +9 -0
- package/dist/actions/get-department.d.mts.map +1 -0
- package/dist/actions/get-department.mjs +16 -0
- package/dist/actions/get-department.mjs.map +1 -0
- package/dist/actions/get-inventory-item-field.cjs +22 -0
- package/dist/actions/get-inventory-item-field.cjs.map +1 -0
- package/dist/actions/get-inventory-item-field.d.cts +9 -0
- package/dist/actions/get-inventory-item-field.d.cts.map +1 -0
- package/dist/actions/get-inventory-item-field.d.mts +9 -0
- package/dist/actions/get-inventory-item-field.d.mts.map +1 -0
- package/dist/actions/get-inventory-item-field.mjs +19 -0
- package/dist/actions/get-inventory-item-field.mjs.map +1 -0
- package/dist/actions/get-memo.cjs +19 -0
- package/dist/actions/get-memo.cjs.map +1 -0
- package/dist/actions/get-memo.d.cts +9 -0
- package/dist/actions/get-memo.d.cts.map +1 -0
- package/dist/actions/get-memo.d.mts +9 -0
- package/dist/actions/get-memo.d.mts.map +1 -0
- package/dist/actions/get-memo.mjs +16 -0
- package/dist/actions/get-memo.mjs.map +1 -0
- package/dist/actions/get-reimbursement.cjs +52 -0
- package/dist/actions/get-reimbursement.cjs.map +1 -0
- package/dist/actions/get-reimbursement.d.cts +9 -0
- package/dist/actions/get-reimbursement.d.cts.map +1 -0
- package/dist/actions/get-reimbursement.d.mts +9 -0
- package/dist/actions/get-reimbursement.d.mts.map +1 -0
- package/dist/actions/get-reimbursement.mjs +51 -0
- package/dist/actions/get-reimbursement.mjs.map +1 -0
- package/dist/actions/get-spend-limit.cjs +103 -0
- package/dist/actions/get-spend-limit.cjs.map +1 -0
- package/dist/actions/get-spend-limit.d.cts +9 -0
- package/dist/actions/get-spend-limit.d.cts.map +1 -0
- package/dist/actions/get-spend-limit.d.mts +9 -0
- package/dist/actions/get-spend-limit.d.mts.map +1 -0
- package/dist/actions/get-spend-limit.mjs +102 -0
- package/dist/actions/get-spend-limit.mjs.map +1 -0
- package/dist/actions/get-statement.cjs +49 -0
- package/dist/actions/get-statement.cjs.map +1 -0
- package/dist/actions/get-statement.d.cts +9 -0
- package/dist/actions/get-statement.d.cts.map +1 -0
- package/dist/actions/get-statement.d.mts +9 -0
- package/dist/actions/get-statement.d.mts.map +1 -0
- package/dist/actions/get-statement.mjs +48 -0
- package/dist/actions/get-statement.mjs.map +1 -0
- package/dist/actions/get-transaction.cjs +57 -0
- package/dist/actions/get-transaction.cjs.map +1 -0
- package/dist/actions/get-transaction.d.cts +9 -0
- package/dist/actions/get-transaction.d.cts.map +1 -0
- package/dist/actions/get-transaction.d.mts +9 -0
- package/dist/actions/get-transaction.d.mts.map +1 -0
- package/dist/actions/get-transaction.mjs +56 -0
- package/dist/actions/get-transaction.mjs.map +1 -0
- package/dist/actions/get-user.cjs +37 -0
- package/dist/actions/get-user.cjs.map +1 -0
- package/dist/actions/get-user.d.cts +9 -0
- package/dist/actions/get-user.d.cts.map +1 -0
- package/dist/actions/get-user.d.mts +9 -0
- package/dist/actions/get-user.d.mts.map +1 -0
- package/dist/actions/get-user.mjs +36 -0
- package/dist/actions/get-user.mjs.map +1 -0
- package/dist/actions/get-users-deferred-status.cjs +32 -0
- package/dist/actions/get-users-deferred-status.cjs.map +1 -0
- package/dist/actions/get-users-deferred-status.d.cts +9 -0
- package/dist/actions/get-users-deferred-status.d.cts.map +1 -0
- package/dist/actions/get-users-deferred-status.d.mts +9 -0
- package/dist/actions/get-users-deferred-status.d.mts.map +1 -0
- package/dist/actions/get-users-deferred-status.mjs +31 -0
- package/dist/actions/get-users-deferred-status.mjs.map +1 -0
- package/dist/actions/get-vendor.cjs +55 -0
- package/dist/actions/get-vendor.cjs.map +1 -0
- package/dist/actions/get-vendor.d.cts +9 -0
- package/dist/actions/get-vendor.d.cts.map +1 -0
- package/dist/actions/get-vendor.d.mts +9 -0
- package/dist/actions/get-vendor.d.mts.map +1 -0
- package/dist/actions/get-vendor.mjs +54 -0
- package/dist/actions/get-vendor.mjs.map +1 -0
- package/dist/actions/get-webhook.cjs +53 -0
- package/dist/actions/get-webhook.cjs.map +1 -0
- package/dist/actions/get-webhook.d.cts +9 -0
- package/dist/actions/get-webhook.d.cts.map +1 -0
- package/dist/actions/get-webhook.d.mts +9 -0
- package/dist/actions/get-webhook.d.mts.map +1 -0
- package/dist/actions/get-webhook.mjs +52 -0
- package/dist/actions/get-webhook.mjs.map +1 -0
- package/dist/actions/index.cjs +177 -0
- package/dist/actions/index.d.cts +89 -0
- package/dist/actions/index.d.mts +89 -0
- package/dist/actions/index.mjs +89 -0
- package/dist/actions/issue-virtual-card.cjs +36 -0
- package/dist/actions/issue-virtual-card.cjs.map +1 -0
- package/dist/actions/issue-virtual-card.d.cts +9 -0
- package/dist/actions/issue-virtual-card.d.cts.map +1 -0
- package/dist/actions/issue-virtual-card.d.mts +9 -0
- package/dist/actions/issue-virtual-card.d.mts.map +1 -0
- package/dist/actions/issue-virtual-card.mjs +35 -0
- package/dist/actions/issue-virtual-card.mjs.map +1 -0
- package/dist/actions/list-accounting-inventory-item-options.cjs +34 -0
- package/dist/actions/list-accounting-inventory-item-options.cjs.map +1 -0
- package/dist/actions/list-accounting-inventory-item-options.d.cts +9 -0
- package/dist/actions/list-accounting-inventory-item-options.d.cts.map +1 -0
- package/dist/actions/list-accounting-inventory-item-options.d.mts +9 -0
- package/dist/actions/list-accounting-inventory-item-options.d.mts.map +1 -0
- package/dist/actions/list-accounting-inventory-item-options.mjs +33 -0
- package/dist/actions/list-accounting-inventory-item-options.mjs.map +1 -0
- package/dist/actions/list-accounting-tax-rates.cjs +31 -0
- package/dist/actions/list-accounting-tax-rates.cjs.map +1 -0
- package/dist/actions/list-accounting-tax-rates.d.cts +9 -0
- package/dist/actions/list-accounting-tax-rates.d.cts.map +1 -0
- package/dist/actions/list-accounting-tax-rates.d.mts +9 -0
- package/dist/actions/list-accounting-tax-rates.d.mts.map +1 -0
- package/dist/actions/list-accounting-tax-rates.mjs +30 -0
- package/dist/actions/list-accounting-tax-rates.mjs.map +1 -0
- package/dist/actions/list-cards.cjs +71 -0
- package/dist/actions/list-cards.cjs.map +1 -0
- package/dist/actions/list-cards.d.cts +9 -0
- package/dist/actions/list-cards.d.cts.map +1 -0
- package/dist/actions/list-cards.d.mts +9 -0
- package/dist/actions/list-cards.d.mts.map +1 -0
- package/dist/actions/list-cards.mjs +70 -0
- package/dist/actions/list-cards.mjs.map +1 -0
- package/dist/actions/list-departments.cjs +27 -0
- package/dist/actions/list-departments.cjs.map +1 -0
- package/dist/actions/list-departments.d.cts +9 -0
- package/dist/actions/list-departments.d.cts.map +1 -0
- package/dist/actions/list-departments.d.mts +9 -0
- package/dist/actions/list-departments.d.mts.map +1 -0
- package/dist/actions/list-departments.mjs +26 -0
- package/dist/actions/list-departments.mjs.map +1 -0
- package/dist/actions/list-memos.cjs +35 -0
- package/dist/actions/list-memos.cjs.map +1 -0
- package/dist/actions/list-memos.d.cts +9 -0
- package/dist/actions/list-memos.d.cts.map +1 -0
- package/dist/actions/list-memos.d.mts +9 -0
- package/dist/actions/list-memos.d.mts.map +1 -0
- package/dist/actions/list-memos.mjs +34 -0
- package/dist/actions/list-memos.mjs.map +1 -0
- package/dist/actions/list-reimbursements.cjs +77 -0
- package/dist/actions/list-reimbursements.cjs.map +1 -0
- package/dist/actions/list-reimbursements.d.cts +9 -0
- package/dist/actions/list-reimbursements.d.cts.map +1 -0
- package/dist/actions/list-reimbursements.d.mts +9 -0
- package/dist/actions/list-reimbursements.d.mts.map +1 -0
- package/dist/actions/list-reimbursements.mjs +76 -0
- package/dist/actions/list-reimbursements.mjs.map +1 -0
- package/dist/actions/list-statements.cjs +60 -0
- package/dist/actions/list-statements.cjs.map +1 -0
- package/dist/actions/list-statements.d.cts +9 -0
- package/dist/actions/list-statements.d.cts.map +1 -0
- package/dist/actions/list-statements.d.mts +9 -0
- package/dist/actions/list-statements.d.mts.map +1 -0
- package/dist/actions/list-statements.mjs +59 -0
- package/dist/actions/list-statements.mjs.map +1 -0
- package/dist/actions/list-users.cjs +50 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +49 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/list-vendors-accounts.cjs +31 -0
- package/dist/actions/list-vendors-accounts.cjs.map +1 -0
- package/dist/actions/list-vendors-accounts.d.cts +9 -0
- package/dist/actions/list-vendors-accounts.d.cts.map +1 -0
- package/dist/actions/list-vendors-accounts.d.mts +9 -0
- package/dist/actions/list-vendors-accounts.d.mts.map +1 -0
- package/dist/actions/list-vendors-accounts.mjs +30 -0
- package/dist/actions/list-vendors-accounts.mjs.map +1 -0
- package/dist/actions/list-vendors-contacts.cjs +32 -0
- package/dist/actions/list-vendors-contacts.cjs.map +1 -0
- package/dist/actions/list-vendors-contacts.d.cts +9 -0
- package/dist/actions/list-vendors-contacts.d.cts.map +1 -0
- package/dist/actions/list-vendors-contacts.d.mts +9 -0
- package/dist/actions/list-vendors-contacts.d.mts.map +1 -0
- package/dist/actions/list-vendors-contacts.mjs +31 -0
- package/dist/actions/list-vendors-contacts.mjs.map +1 -0
- package/dist/actions/list-vendors-credits.cjs +76 -0
- package/dist/actions/list-vendors-credits.cjs.map +1 -0
- package/dist/actions/list-vendors-credits.d.cts +9 -0
- package/dist/actions/list-vendors-credits.d.cts.map +1 -0
- package/dist/actions/list-vendors-credits.d.mts +9 -0
- package/dist/actions/list-vendors-credits.d.mts.map +1 -0
- package/dist/actions/list-vendors-credits.mjs +75 -0
- package/dist/actions/list-vendors-credits.mjs.map +1 -0
- package/dist/actions/list-vendors.cjs +64 -0
- package/dist/actions/list-vendors.cjs.map +1 -0
- package/dist/actions/list-vendors.d.cts +9 -0
- package/dist/actions/list-vendors.d.cts.map +1 -0
- package/dist/actions/list-vendors.d.mts +9 -0
- package/dist/actions/list-vendors.d.mts.map +1 -0
- package/dist/actions/list-vendors.mjs +63 -0
- package/dist/actions/list-vendors.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +25 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +24 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/options-for-custom-accounting-field.cjs +33 -0
- package/dist/actions/options-for-custom-accounting-field.cjs.map +1 -0
- package/dist/actions/options-for-custom-accounting-field.d.cts +9 -0
- package/dist/actions/options-for-custom-accounting-field.d.cts.map +1 -0
- package/dist/actions/options-for-custom-accounting-field.d.mts +9 -0
- package/dist/actions/options-for-custom-accounting-field.d.mts.map +1 -0
- package/dist/actions/options-for-custom-accounting-field.mjs +32 -0
- package/dist/actions/options-for-custom-accounting-field.mjs.map +1 -0
- package/dist/actions/patch-accounting-connection.cjs +36 -0
- package/dist/actions/patch-accounting-connection.cjs.map +1 -0
- package/dist/actions/patch-accounting-connection.d.cts +9 -0
- package/dist/actions/patch-accounting-connection.d.cts.map +1 -0
- package/dist/actions/patch-accounting-connection.d.mts +9 -0
- package/dist/actions/patch-accounting-connection.d.mts.map +1 -0
- package/dist/actions/patch-accounting-connection.mjs +35 -0
- package/dist/actions/patch-accounting-connection.mjs.map +1 -0
- package/dist/actions/patch-card-resource.cjs +46 -0
- package/dist/actions/patch-card-resource.cjs.map +1 -0
- package/dist/actions/patch-card-resource.d.cts +9 -0
- package/dist/actions/patch-card-resource.d.cts.map +1 -0
- package/dist/actions/patch-card-resource.d.mts +9 -0
- package/dist/actions/patch-card-resource.d.mts.map +1 -0
- package/dist/actions/patch-card-resource.mjs +43 -0
- package/dist/actions/patch-card-resource.mjs.map +1 -0
- package/dist/actions/patch-custom-field-option.cjs +35 -0
- package/dist/actions/patch-custom-field-option.cjs.map +1 -0
- package/dist/actions/patch-custom-field-option.d.cts +9 -0
- package/dist/actions/patch-custom-field-option.d.cts.map +1 -0
- package/dist/actions/patch-custom-field-option.d.mts +9 -0
- package/dist/actions/patch-custom-field-option.d.mts.map +1 -0
- package/dist/actions/patch-custom-field-option.mjs +32 -0
- package/dist/actions/patch-custom-field-option.mjs.map +1 -0
- package/dist/actions/patch-gl-account-resource.cjs +38 -0
- package/dist/actions/patch-gl-account-resource.cjs.map +1 -0
- package/dist/actions/patch-gl-account-resource.d.cts +9 -0
- package/dist/actions/patch-gl-account-resource.d.cts.map +1 -0
- package/dist/actions/patch-gl-account-resource.d.mts +9 -0
- package/dist/actions/patch-gl-account-resource.d.mts.map +1 -0
- package/dist/actions/patch-gl-account-resource.mjs +37 -0
- package/dist/actions/patch-gl-account-resource.mjs.map +1 -0
- package/dist/actions/patch-inventory-item-field.cjs +25 -0
- package/dist/actions/patch-inventory-item-field.cjs.map +1 -0
- package/dist/actions/patch-inventory-item-field.d.cts +9 -0
- package/dist/actions/patch-inventory-item-field.d.cts.map +1 -0
- package/dist/actions/patch-inventory-item-field.d.mts +9 -0
- package/dist/actions/patch-inventory-item-field.d.mts.map +1 -0
- package/dist/actions/patch-inventory-item-field.mjs +22 -0
- package/dist/actions/patch-inventory-item-field.mjs.map +1 -0
- package/dist/actions/post-accounting-accounts.cjs +47 -0
- package/dist/actions/post-accounting-accounts.cjs.map +1 -0
- package/dist/actions/post-accounting-accounts.d.cts +9 -0
- package/dist/actions/post-accounting-accounts.d.cts.map +1 -0
- package/dist/actions/post-accounting-accounts.d.mts +9 -0
- package/dist/actions/post-accounting-accounts.d.mts.map +1 -0
- package/dist/actions/post-accounting-accounts.mjs +46 -0
- package/dist/actions/post-accounting-accounts.mjs.map +1 -0
- package/dist/actions/post-accounting-connection.cjs +30 -0
- package/dist/actions/post-accounting-connection.cjs.map +1 -0
- package/dist/actions/post-accounting-connection.d.cts +9 -0
- package/dist/actions/post-accounting-connection.d.cts.map +1 -0
- package/dist/actions/post-accounting-connection.d.mts +9 -0
- package/dist/actions/post-accounting-connection.d.mts.map +1 -0
- package/dist/actions/post-accounting-connection.mjs +29 -0
- package/dist/actions/post-accounting-connection.mjs.map +1 -0
- package/dist/actions/post-accounting-vendors.cjs +38 -0
- package/dist/actions/post-accounting-vendors.cjs.map +1 -0
- package/dist/actions/post-accounting-vendors.d.cts +9 -0
- package/dist/actions/post-accounting-vendors.d.cts.map +1 -0
- package/dist/actions/post-accounting-vendors.d.mts +9 -0
- package/dist/actions/post-accounting-vendors.d.mts.map +1 -0
- package/dist/actions/post-accounting-vendors.mjs +37 -0
- package/dist/actions/post-accounting-vendors.mjs.map +1 -0
- package/dist/actions/post-inventory-item-options.cjs +26 -0
- package/dist/actions/post-inventory-item-options.cjs.map +1 -0
- package/dist/actions/post-inventory-item-options.d.cts +9 -0
- package/dist/actions/post-inventory-item-options.d.cts.map +1 -0
- package/dist/actions/post-inventory-item-options.d.mts +9 -0
- package/dist/actions/post-inventory-item-options.d.mts.map +1 -0
- package/dist/actions/post-inventory-item-options.mjs +25 -0
- package/dist/actions/post-inventory-item-options.mjs.map +1 -0
- package/dist/actions/post-physical-card.cjs +59 -0
- package/dist/actions/post-physical-card.cjs.map +1 -0
- package/dist/actions/post-physical-card.d.cts +9 -0
- package/dist/actions/post-physical-card.d.cts.map +1 -0
- package/dist/actions/post-physical-card.d.mts +9 -0
- package/dist/actions/post-physical-card.d.mts.map +1 -0
- package/dist/actions/post-physical-card.mjs +56 -0
- package/dist/actions/post-physical-card.mjs.map +1 -0
- package/dist/actions/reactivate-accounting-connection.cjs +26 -0
- package/dist/actions/reactivate-accounting-connection.cjs.map +1 -0
- package/dist/actions/reactivate-accounting-connection.d.cts +9 -0
- package/dist/actions/reactivate-accounting-connection.d.cts.map +1 -0
- package/dist/actions/reactivate-accounting-connection.d.mts +9 -0
- package/dist/actions/reactivate-accounting-connection.d.mts.map +1 -0
- package/dist/actions/reactivate-accounting-connection.mjs +25 -0
- package/dist/actions/reactivate-accounting-connection.mjs.map +1 -0
- package/dist/actions/reactivate-user.cjs +16 -0
- package/dist/actions/reactivate-user.cjs.map +1 -0
- package/dist/actions/reactivate-user.d.cts +9 -0
- package/dist/actions/reactivate-user.d.cts.map +1 -0
- package/dist/actions/reactivate-user.d.mts +9 -0
- package/dist/actions/reactivate-user.d.mts.map +1 -0
- package/dist/actions/reactivate-user.mjs +13 -0
- package/dist/actions/reactivate-user.mjs.map +1 -0
- package/dist/actions/submit-reimbursement-receipt.cjs +144 -0
- package/dist/actions/submit-reimbursement-receipt.cjs.map +1 -0
- package/dist/actions/submit-reimbursement-receipt.d.cts +9 -0
- package/dist/actions/submit-reimbursement-receipt.d.cts.map +1 -0
- package/dist/actions/submit-reimbursement-receipt.d.mts +9 -0
- package/dist/actions/submit-reimbursement-receipt.d.mts.map +1 -0
- package/dist/actions/submit-reimbursement-receipt.mjs +143 -0
- package/dist/actions/submit-reimbursement-receipt.mjs.map +1 -0
- package/dist/actions/suspend-card.cjs +19 -0
- package/dist/actions/suspend-card.cjs.map +1 -0
- package/dist/actions/suspend-card.d.cts +9 -0
- package/dist/actions/suspend-card.d.cts.map +1 -0
- package/dist/actions/suspend-card.d.mts +9 -0
- package/dist/actions/suspend-card.d.mts.map +1 -0
- package/dist/actions/suspend-card.mjs +16 -0
- package/dist/actions/suspend-card.mjs.map +1 -0
- package/dist/actions/terminate-card.cjs +19 -0
- package/dist/actions/terminate-card.cjs.map +1 -0
- package/dist/actions/terminate-card.d.cts +9 -0
- package/dist/actions/terminate-card.d.cts.map +1 -0
- package/dist/actions/terminate-card.d.mts +9 -0
- package/dist/actions/terminate-card.d.mts.map +1 -0
- package/dist/actions/terminate-card.mjs +16 -0
- package/dist/actions/terminate-card.mjs.map +1 -0
- package/dist/actions/update-accounting-field.cjs +48 -0
- package/dist/actions/update-accounting-field.cjs.map +1 -0
- package/dist/actions/update-accounting-field.d.cts +9 -0
- package/dist/actions/update-accounting-field.d.cts.map +1 -0
- package/dist/actions/update-accounting-field.d.mts +9 -0
- package/dist/actions/update-accounting-field.d.mts.map +1 -0
- package/dist/actions/update-accounting-field.mjs +47 -0
- package/dist/actions/update-accounting-field.mjs.map +1 -0
- package/dist/actions/update-accounting-inventory-item-options.cjs +25 -0
- package/dist/actions/update-accounting-inventory-item-options.cjs.map +1 -0
- package/dist/actions/update-accounting-inventory-item-options.d.cts +9 -0
- package/dist/actions/update-accounting-inventory-item-options.d.cts.map +1 -0
- package/dist/actions/update-accounting-inventory-item-options.d.mts +9 -0
- package/dist/actions/update-accounting-inventory-item-options.d.mts.map +1 -0
- package/dist/actions/update-accounting-inventory-item-options.mjs +22 -0
- package/dist/actions/update-accounting-inventory-item-options.mjs.map +1 -0
- package/dist/actions/update-accounting-tax-code-options.cjs +27 -0
- package/dist/actions/update-accounting-tax-code-options.cjs.map +1 -0
- package/dist/actions/update-accounting-tax-code-options.d.cts +9 -0
- package/dist/actions/update-accounting-tax-code-options.d.cts.map +1 -0
- package/dist/actions/update-accounting-tax-code-options.d.mts +9 -0
- package/dist/actions/update-accounting-tax-code-options.d.mts.map +1 -0
- package/dist/actions/update-accounting-tax-code-options.mjs +24 -0
- package/dist/actions/update-accounting-tax-code-options.mjs.map +1 -0
- package/dist/actions/update-accounting-tax-code.cjs +25 -0
- package/dist/actions/update-accounting-tax-code.cjs.map +1 -0
- package/dist/actions/update-accounting-tax-code.d.cts +9 -0
- package/dist/actions/update-accounting-tax-code.d.cts.map +1 -0
- package/dist/actions/update-accounting-tax-code.d.mts +9 -0
- package/dist/actions/update-accounting-tax-code.d.mts.map +1 -0
- package/dist/actions/update-accounting-tax-code.mjs +22 -0
- package/dist/actions/update-accounting-tax-code.mjs.map +1 -0
- package/dist/actions/update-accounting-tax-rate.cjs +28 -0
- package/dist/actions/update-accounting-tax-rate.cjs.map +1 -0
- package/dist/actions/update-accounting-tax-rate.d.cts +9 -0
- package/dist/actions/update-accounting-tax-rate.d.cts.map +1 -0
- package/dist/actions/update-accounting-tax-rate.d.mts +9 -0
- package/dist/actions/update-accounting-tax-rate.d.mts.map +1 -0
- package/dist/actions/update-accounting-tax-rate.mjs +25 -0
- package/dist/actions/update-accounting-tax-rate.mjs.map +1 -0
- package/dist/actions/update-accounting-vendor.cjs +38 -0
- package/dist/actions/update-accounting-vendor.cjs.map +1 -0
- package/dist/actions/update-accounting-vendor.d.cts +9 -0
- package/dist/actions/update-accounting-vendor.d.cts.map +1 -0
- package/dist/actions/update-accounting-vendor.d.mts +9 -0
- package/dist/actions/update-accounting-vendor.d.mts.map +1 -0
- package/dist/actions/update-accounting-vendor.mjs +37 -0
- package/dist/actions/update-accounting-vendor.mjs.map +1 -0
- package/dist/actions/update-card-limit.cjs +42 -0
- package/dist/actions/update-card-limit.cjs.map +1 -0
- package/dist/actions/update-card-limit.d.cts +9 -0
- package/dist/actions/update-card-limit.d.cts.map +1 -0
- package/dist/actions/update-card-limit.d.mts +9 -0
- package/dist/actions/update-card-limit.d.mts.map +1 -0
- package/dist/actions/update-card-limit.mjs +41 -0
- package/dist/actions/update-card-limit.mjs.map +1 -0
- package/dist/actions/update-department.cjs +24 -0
- package/dist/actions/update-department.cjs.map +1 -0
- package/dist/actions/update-department.d.cts +9 -0
- package/dist/actions/update-department.d.cts.map +1 -0
- package/dist/actions/update-department.d.mts +9 -0
- package/dist/actions/update-department.d.mts.map +1 -0
- package/dist/actions/update-department.mjs +21 -0
- package/dist/actions/update-department.mjs.map +1 -0
- package/dist/actions/update-limits.cjs +126 -0
- package/dist/actions/update-limits.cjs.map +1 -0
- package/dist/actions/update-limits.d.cts +9 -0
- package/dist/actions/update-limits.d.cts.map +1 -0
- package/dist/actions/update-limits.d.mts +9 -0
- package/dist/actions/update-limits.d.mts.map +1 -0
- package/dist/actions/update-limits.mjs +125 -0
- package/dist/actions/update-limits.mjs.map +1 -0
- package/dist/actions/update-user.cjs +35 -0
- package/dist/actions/update-user.cjs.map +1 -0
- package/dist/actions/update-user.d.cts +9 -0
- package/dist/actions/update-user.d.cts.map +1 -0
- package/dist/actions/update-user.d.mts +9 -0
- package/dist/actions/update-user.d.mts.map +1 -0
- package/dist/actions/update-user.mjs +32 -0
- package/dist/actions/update-user.mjs.map +1 -0
- package/dist/actions/upload-new-options.cjs +40 -0
- package/dist/actions/upload-new-options.cjs.map +1 -0
- package/dist/actions/upload-new-options.d.cts +9 -0
- package/dist/actions/upload-new-options.d.cts.map +1 -0
- package/dist/actions/upload-new-options.d.mts +9 -0
- package/dist/actions/upload-new-options.d.mts.map +1 -0
- package/dist/actions/upload-new-options.mjs +39 -0
- package/dist/actions/upload-new-options.mjs.map +1 -0
- package/dist/actions/upload-tax-code-options.cjs +28 -0
- package/dist/actions/upload-tax-code-options.cjs.map +1 -0
- package/dist/actions/upload-tax-code-options.d.cts +9 -0
- package/dist/actions/upload-tax-code-options.d.cts.map +1 -0
- package/dist/actions/upload-tax-code-options.d.mts +9 -0
- package/dist/actions/upload-tax-code-options.d.mts.map +1 -0
- package/dist/actions/upload-tax-code-options.mjs +27 -0
- package/dist/actions/upload-tax-code-options.mjs.map +1 -0
- package/dist/actions/upload-tax-rates.cjs +32 -0
- package/dist/actions/upload-tax-rates.cjs.map +1 -0
- package/dist/actions/upload-tax-rates.d.cts +9 -0
- package/dist/actions/upload-tax-rates.d.cts.map +1 -0
- package/dist/actions/upload-tax-rates.d.mts +9 -0
- package/dist/actions/upload-tax-rates.d.mts.map +1 -0
- package/dist/actions/upload-tax-rates.mjs +31 -0
- package/dist/actions/upload-tax-rates.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +182 -0
- package/dist/index.d.cts +91 -0
- package/dist/index.d.mts +91 -4
- package/dist/index.mjs +92 -7
- package/package.json +31 -58
- package/LICENSE +0 -21
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -4
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/ramp-app.credential-set-Lfv-WYR0.mjs +0 -24
- package/dist/ramp-app.credential-set-cr5rSCuj.d.mts +0 -51
- package/dist/ramp.credential-set-IqskZBeS.mjs +0 -65
- package/dist/schemas/index.d.mts +0 -2101
- package/dist/schemas/index.mjs +0 -99
- package/dist/transactions-BbD9dl3x.mjs +0 -1005
- package/dist/upload-receipt.operation-ClJzqNb-.d.mts +0 -3907
- package/dist/upload-receipt.operation-DNDW2WTQ.mjs +0 -2322
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-reimbursement.ts
|
|
4
|
+
const RampGetReimbursementInput = z.object({ reimbursement_id: z.string().describe("ID of the reimbursement to retrieve") });
|
|
5
|
+
const RampGetReimbursement_LineItemAmountSchema = z.object({
|
|
6
|
+
amount: z.number().describe("Numeric value of the line item amount").nullable().optional(),
|
|
7
|
+
currency_code: z.string().describe("Currency code for the line item").nullable().optional()
|
|
8
|
+
}).describe("Amount object for a line item.");
|
|
9
|
+
const RampGetReimbursement_CategoryInfoSchema = z.object({
|
|
10
|
+
id: z.string().describe("Internal identifier for the category").nullable().optional(),
|
|
11
|
+
name: z.string().describe("Name of the category").nullable().optional(),
|
|
12
|
+
type: z.string().describe("Type of accounting field (e.g., GL_ACCOUNT, Subsidiary)").nullable().optional(),
|
|
13
|
+
external_id: z.string().describe("External identifier for the category").nullable().optional()
|
|
14
|
+
}).describe("Category information for an accounting field.");
|
|
15
|
+
const RampGetReimbursement_AccountingFieldSelectionSchema = z.object({
|
|
16
|
+
id: z.string().describe("Internal identifier for the accounting field selection").nullable().optional(),
|
|
17
|
+
name: z.string().describe("Name of the accounting field selection").nullable().optional(),
|
|
18
|
+
type: z.string().describe("Type of the accounting field selection").nullable().optional(),
|
|
19
|
+
external_id: z.string().describe("External identifier for the accounting field selection").nullable().optional(),
|
|
20
|
+
category_info: RampGetReimbursement_CategoryInfoSchema.nullable().optional()
|
|
21
|
+
}).describe("Accounting field selection with category information.");
|
|
22
|
+
const RampGetReimbursement_LineItemSchema = z.object({
|
|
23
|
+
amount: RampGetReimbursement_LineItemAmountSchema.nullable().optional(),
|
|
24
|
+
accounting_field_selections: z.array(RampGetReimbursement_AccountingFieldSelectionSchema).describe("Accounting field selections for this line item").nullable().optional()
|
|
25
|
+
}).describe("Individual line item within a reimbursement.");
|
|
26
|
+
const rampGetReimbursement = action("RAMP_GET_REIMBURSEMENT", {
|
|
27
|
+
slug: "ramp-get-reimbursement",
|
|
28
|
+
name: "Get Reimbursement Details",
|
|
29
|
+
description: "Tool for retrieving complete details of a specific reimbursement. Includes amount, status, user information, accounting details, receipts, and sync status. Use this to get comprehensive reimbursement information for approval workflows or detailed analysis.",
|
|
30
|
+
input: RampGetReimbursementInput,
|
|
31
|
+
output: z.object({
|
|
32
|
+
id: z.string().describe("Unique identifier for the reimbursement"),
|
|
33
|
+
state: z.string().describe("Current state of the reimbursement (e.g., PENDING, APPROVED, DECLINED, PAID)").nullable().optional(),
|
|
34
|
+
amount: z.number().describe("The reimbursement monetary value"),
|
|
35
|
+
user_id: z.string().describe("Identifier linking the reimbursement to a specific user"),
|
|
36
|
+
currency: z.string().describe("The currency code for the reimbursement amount (e.g., USD, EUR)"),
|
|
37
|
+
distance: z.number().describe("Distance for mileage reimbursements").nullable().optional(),
|
|
38
|
+
merchant: z.string().describe("Name or identifier of the merchant involved in the transaction (may be null for mileage reimbursements)").nullable().optional(),
|
|
39
|
+
receipts: z.array(z.string()).describe("Collection of receipt identifiers or references associated with the reimbursement"),
|
|
40
|
+
direction: z.string().describe("Direction of payment (e.g., BUSINESS_TO_USER)").nullable().optional(),
|
|
41
|
+
entity_id: z.string().describe("Entity identifier for multi-entity organizations").nullable().optional(),
|
|
42
|
+
created_at: z.string().describe("Timestamp indicating when the reimbursement record was created (ISO 8601 datetime format)").nullable().optional(),
|
|
43
|
+
line_items: z.array(RampGetReimbursement_LineItemSchema).describe("Array of individual line items within the reimbursement").nullable().optional(),
|
|
44
|
+
transaction_date: z.string().describe("The date when the transaction occurred (ISO 8601 date format)").nullable().optional(),
|
|
45
|
+
accounting_field_selections: z.array(RampGetReimbursement_AccountingFieldSelectionSchema).describe("Array of accounting field objects with category information").nullable().optional()
|
|
46
|
+
}).describe("Complete reimbursement details returned by the API.")
|
|
47
|
+
});
|
|
48
|
+
//#endregion
|
|
49
|
+
export { rampGetReimbursement };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=get-reimbursement.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-reimbursement.mjs","names":[],"sources":["../../src/actions/get-reimbursement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetReimbursementInput: z.ZodTypeAny = z.object({\n reimbursement_id: z.string().describe(\"ID of the reimbursement to retrieve\"),\n});\nconst RampGetReimbursement_LineItemAmountSchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Numeric value of the line item amount\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code for the line item\").nullable().optional(),\n}).describe(\"Amount object for a line item.\");\nconst RampGetReimbursement_CategoryInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Internal identifier for the category\").nullable().optional(),\n name: z.string().describe(\"Name of the category\").nullable().optional(),\n type: z.string().describe(\"Type of accounting field (e.g., GL_ACCOUNT, Subsidiary)\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the category\").nullable().optional(),\n}).describe(\"Category information for an accounting field.\");\nconst RampGetReimbursement_AccountingFieldSelectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Internal identifier for the accounting field selection\").nullable().optional(),\n name: z.string().describe(\"Name of the accounting field selection\").nullable().optional(),\n type: z.string().describe(\"Type of the accounting field selection\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampGetReimbursement_CategoryInfoSchema.nullable().optional(),\n}).describe(\"Accounting field selection with category information.\");\nconst RampGetReimbursement_LineItemSchema: z.ZodTypeAny = z.object({\n amount: RampGetReimbursement_LineItemAmountSchema.nullable().optional(),\n accounting_field_selections: z.array(RampGetReimbursement_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\").nullable().optional(),\n}).describe(\"Individual line item within a reimbursement.\");\nexport const RampGetReimbursementOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the reimbursement\"),\n state: z.string().describe(\"Current state of the reimbursement (e.g., PENDING, APPROVED, DECLINED, PAID)\").nullable().optional(),\n amount: z.number().describe(\"The reimbursement monetary value\"),\n user_id: z.string().describe(\"Identifier linking the reimbursement to a specific user\"),\n currency: z.string().describe(\"The currency code for the reimbursement amount (e.g., USD, EUR)\"),\n distance: z.number().describe(\"Distance for mileage reimbursements\").nullable().optional(),\n merchant: z.string().describe(\"Name or identifier of the merchant involved in the transaction (may be null for mileage reimbursements)\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"Collection of receipt identifiers or references associated with the reimbursement\"),\n direction: z.string().describe(\"Direction of payment (e.g., BUSINESS_TO_USER)\").nullable().optional(),\n entity_id: z.string().describe(\"Entity identifier for multi-entity organizations\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp indicating when the reimbursement record was created (ISO 8601 datetime format)\").nullable().optional(),\n line_items: z.array(RampGetReimbursement_LineItemSchema).describe(\"Array of individual line items within the reimbursement\").nullable().optional(),\n transaction_date: z.string().describe(\"The date when the transaction occurred (ISO 8601 date format)\").nullable().optional(),\n accounting_field_selections: z.array(RampGetReimbursement_AccountingFieldSelectionSchema).describe(\"Array of accounting field objects with category information\").nullable().optional(),\n}).describe(\"Complete reimbursement details returned by the API.\");\n\nexport const rampGetReimbursement = action(\"RAMP_GET_REIMBURSEMENT\", {\n slug: \"ramp-get-reimbursement\",\n name: \"Get Reimbursement Details\",\n description: \"Tool for retrieving complete details of a specific reimbursement. Includes amount, status, user information, accounting details, receipts, and sync status. Use this to get comprehensive reimbursement information for approval workflows or detailed analysis.\",\n input: RampGetReimbursementInput,\n output: RampGetReimbursementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO,EAC9D,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,EAC7E,CAAC;AACD,MAAM,4CAA0D,EAAE,OAAO;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAM,0CAAwD,EAAE,OAAO;CACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS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,CAAC,SAAS,iEAAiE;EAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mFAAmF;EAC1H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,YAAY,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,6BAA6B,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxL,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-spend-limit.ts
|
|
4
|
+
const RampGetSpendLimitInput = zod.z.object({ spend_limit_id: zod.z.string().describe("The unique identifier (UUID) of the spend limit to retrieve") });
|
|
5
|
+
const RampGetSpendLimit_CardSchema = zod.z.object({
|
|
6
|
+
card_id: zod.z.string().describe("Unique identifier of the card"),
|
|
7
|
+
last_four: zod.z.string().describe("Last four digits of the card number").nullable().optional(),
|
|
8
|
+
created_at: zod.z.string().describe("Card creation timestamp in ISO8601 format").nullable().optional(),
|
|
9
|
+
expiration: zod.z.string().describe("Card expiration date in MMYY format").nullable().optional(),
|
|
10
|
+
is_ap_card: zod.z.boolean().describe("Indicates if this is an accounts payable card").nullable().optional(),
|
|
11
|
+
display_name: zod.z.string().describe("Display name of the card").nullable().optional(),
|
|
12
|
+
cardholder_id: zod.z.string().describe("Unique identifier of the cardholder").nullable().optional(),
|
|
13
|
+
via_new_product_or_service: zod.z.boolean().describe("Indicates if card was created via new product or service").nullable().optional()
|
|
14
|
+
}).describe("Card information linked to the spend limit.");
|
|
15
|
+
const RampGetSpendLimit_UserSchema = zod.z.object({ user_id: zod.z.string().describe("Unique identifier of the user") }).describe("User with access to spend from the limit.");
|
|
16
|
+
const RampGetSpendLimit_AmountCurrencySchema = zod.z.object({
|
|
17
|
+
amount: zod.z.number().describe("Monetary amount in minor units (cents)").nullable().optional(),
|
|
18
|
+
currency_code: zod.z.string().describe("Currency code (e.g., USD)").nullable().optional(),
|
|
19
|
+
minor_unit_conversion_rate: zod.z.number().int().describe("Conversion rate for minor units (e.g., 100 for cents to dollars)").nullable().optional()
|
|
20
|
+
}).describe("Amount and currency representation.");
|
|
21
|
+
const RampGetSpendLimit_BalanceSchema = zod.z.object({
|
|
22
|
+
total: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
23
|
+
cleared: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
24
|
+
pending: RampGetSpendLimit_AmountCurrencySchema.nullable().optional()
|
|
25
|
+
}).describe("Details about the current balance of the limit.");
|
|
26
|
+
const RampGetSpendLimit_SuspensionSchema = zod.z.object({
|
|
27
|
+
inserted_at: zod.z.string().describe("Timestamp when suspension was applied in ISO8601 format"),
|
|
28
|
+
acting_user_id: zod.z.string().describe("ID of the user who initiated the suspension"),
|
|
29
|
+
suspended_by_ramp: zod.z.boolean().describe("Indicates if the suspension was initiated by Ramp")
|
|
30
|
+
}).describe("Suspension (lock) on the limit.");
|
|
31
|
+
const RampGetSpendLimit_RestrictionsSchema = zod.z.object({
|
|
32
|
+
limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
33
|
+
interval: zod.z.string().describe("Spending interval (e.g., MONTHLY, YEARLY)").nullable().optional(),
|
|
34
|
+
auto_lock_date: zod.z.string().describe("Date when the limit will be automatically locked in ISO8601 format").nullable().optional(),
|
|
35
|
+
allowed_vendors: zod.z.array(zod.z.number().int()).describe("List of allowed vendor IDs").nullable().optional(),
|
|
36
|
+
blocked_vendors: zod.z.array(zod.z.number().int()).describe("List of blocked vendor IDs").nullable().optional(),
|
|
37
|
+
temporary_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
38
|
+
start_of_interval: zod.z.string().describe("Start of current interval in ISO8601 format").nullable().optional(),
|
|
39
|
+
allowed_categories: zod.z.array(zod.z.number().int()).describe("List of allowed merchant category codes").nullable().optional(),
|
|
40
|
+
blocked_categories: zod.z.array(zod.z.number().int()).describe("List of blocked merchant category codes").nullable().optional(),
|
|
41
|
+
next_interval_reset: zod.z.string().describe("Next interval reset date in ISO8601 format").nullable().optional(),
|
|
42
|
+
transaction_amount_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional()
|
|
43
|
+
}).describe("Restrictions imposed on this limit.");
|
|
44
|
+
const RampGetSpendLimit_PermittedSpendTypesSchema = zod.z.object({
|
|
45
|
+
primary_card_enabled: zod.z.boolean().describe("Indicates if primary card spending is enabled"),
|
|
46
|
+
reimbursements_enabled: zod.z.boolean().describe("Indicates if reimbursements are enabled")
|
|
47
|
+
}).describe("Specifies the permitted spend types of the limit.");
|
|
48
|
+
const RampGetSpendLimit_FieldValueSchema = zod.z.object({ value: zod.z.string().describe("The field value").nullable().optional() }).describe("Field value for custom form fields.");
|
|
49
|
+
const RampGetSpendLimit_FormFieldSchema = zod.z.object({
|
|
50
|
+
value: RampGetSpendLimit_FieldValueSchema.nullable().optional(),
|
|
51
|
+
field_type: zod.z.string().describe("Type of the field (e.g., TEXT)").nullable().optional(),
|
|
52
|
+
mapped_fields: zod.z.array(zod.z.string()).describe("List of mapped field identifiers").nullable().optional()
|
|
53
|
+
}).describe("Custom form field definition.");
|
|
54
|
+
const RampGetSpendLimit_CustomFormFieldSchema = zod.z.object({
|
|
55
|
+
field: RampGetSpendLimit_FormFieldSchema.nullable().optional(),
|
|
56
|
+
label: zod.z.string().describe("Field label").nullable().optional(),
|
|
57
|
+
field_id: zod.z.string().describe("Unique identifier of the field").nullable().optional(),
|
|
58
|
+
required: zod.z.boolean().describe("Indicates if field is required").nullable().optional(),
|
|
59
|
+
conditions: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Field conditions").nullable().optional(),
|
|
60
|
+
description: zod.z.string().describe("Field description").nullable().optional(),
|
|
61
|
+
validation_errors: zod.z.array(zod.z.string()).describe("List of validation errors").nullable().optional(),
|
|
62
|
+
value_display_string: zod.z.string().describe("Display string for the field value").nullable().optional(),
|
|
63
|
+
is_mapped_to_ironclad_field: zod.z.boolean().describe("Indicates if mapped to Ironclad field").nullable().optional(),
|
|
64
|
+
is_used_in_approval_workflow_condition: zod.z.boolean().describe("Indicates if used in approval workflow condition").nullable().optional(),
|
|
65
|
+
is_used_in_custom_form_workflow_condition: zod.z.boolean().describe("Indicates if used in custom form workflow condition").nullable().optional()
|
|
66
|
+
}).describe("Custom form field with metadata.");
|
|
67
|
+
const RampGetSpendLimit_CustomFormSchema = zod.z.object({
|
|
68
|
+
label: zod.z.string().describe("Label of the custom form").nullable().optional(),
|
|
69
|
+
fields: zod.z.array(RampGetSpendLimit_CustomFormFieldSchema).describe("List of fields in the custom form").nullable().optional()
|
|
70
|
+
}).describe("Custom form definition.");
|
|
71
|
+
const RampGetSpendLimit_CustomFormCollectionLogEntrySchema = zod.z.object({
|
|
72
|
+
forms: zod.z.array(RampGetSpendLimit_CustomFormSchema).describe("List of custom forms").nullable().optional(),
|
|
73
|
+
label: zod.z.string().describe("Label of the collection").nullable().optional()
|
|
74
|
+
}).describe("Custom form collection log entry.");
|
|
75
|
+
const RampGetSpendLimit_CustomFormCollectionResponseSchema = zod.z.object({ custom_form_collection_log_entry: RampGetSpendLimit_CustomFormCollectionLogEntrySchema.nullable().optional() }).describe("Custom form collection with an associated response log entry.");
|
|
76
|
+
const RampGetSpendLimitOutput = zod.z.object({
|
|
77
|
+
id: zod.z.string().describe("Unique identifier of the limit"),
|
|
78
|
+
cards: zod.z.array(RampGetSpendLimit_CardSchema).describe("List of cards linked to this limit"),
|
|
79
|
+
state: zod.z.string().describe("Current state of the limit (ACTIVE, SUSPENDED, or TERMINATED)"),
|
|
80
|
+
users: zod.z.array(RampGetSpendLimit_UserSchema).describe("Members who can spend from the limit"),
|
|
81
|
+
balance: RampGetSpendLimit_BalanceSchema.nullable().optional(),
|
|
82
|
+
entity_id: zod.z.string().describe("Associated business entity of the limit (UUID)").nullable().optional(),
|
|
83
|
+
created_at: zod.z.string().describe("Time at which the spend limit is created in ISO8601 format"),
|
|
84
|
+
suspension: RampGetSpendLimit_SuspensionSchema.nullable().optional(),
|
|
85
|
+
display_name: zod.z.string().describe("Display name of the limit and all linked cards"),
|
|
86
|
+
is_shareable: zod.z.boolean().describe("Whether this spend limit is shareable"),
|
|
87
|
+
restrictions: RampGetSpendLimit_RestrictionsSchema.nullable().optional(),
|
|
88
|
+
spend_program_id: zod.z.string().describe("Unique identifier of the associated Spend Program (UUID)").nullable().optional(),
|
|
89
|
+
permitted_spend_types: RampGetSpendLimit_PermittedSpendTypesSchema.nullable(),
|
|
90
|
+
has_program_overridden: zod.z.boolean().describe("Indicates if the limit's settings override those of its Spend Program"),
|
|
91
|
+
custom_form_collection_response: RampGetSpendLimit_CustomFormCollectionResponseSchema.nullable().optional()
|
|
92
|
+
}).describe("Response containing detailed information about a spend limit.");
|
|
93
|
+
const rampGetSpendLimit = require_action.action("RAMP_GET_SPEND_LIMIT", {
|
|
94
|
+
slug: "ramp-get-spend-limit",
|
|
95
|
+
name: "Get Spend Limit",
|
|
96
|
+
description: "Tool to fetch detailed information about a specific spend limit. Use when you need to retrieve comprehensive limit details including balance, restrictions, linked cards, and users.",
|
|
97
|
+
input: RampGetSpendLimitInput,
|
|
98
|
+
output: RampGetSpendLimitOutput
|
|
99
|
+
});
|
|
100
|
+
//#endregion
|
|
101
|
+
exports.rampGetSpendLimit = rampGetSpendLimit;
|
|
102
|
+
|
|
103
|
+
//# sourceMappingURL=get-spend-limit.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-spend-limit.cjs","names":["z","action"],"sources":["../../src/actions/get-spend-limit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetSpendLimitInput: z.ZodTypeAny = z.object({\n spend_limit_id: z.string().describe(\"The unique identifier (UUID) of the spend limit to retrieve\"),\n});\nconst RampGetSpendLimit_CardSchema: z.ZodTypeAny = z.object({\n card_id: z.string().describe(\"Unique identifier of the card\"),\n last_four: z.string().describe(\"Last four digits of the card number\").nullable().optional(),\n created_at: z.string().describe(\"Card creation timestamp in ISO8601 format\").nullable().optional(),\n expiration: z.string().describe(\"Card expiration date in MMYY format\").nullable().optional(),\n is_ap_card: z.boolean().describe(\"Indicates if this is an accounts payable card\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the card\").nullable().optional(),\n cardholder_id: z.string().describe(\"Unique identifier of the cardholder\").nullable().optional(),\n via_new_product_or_service: z.boolean().describe(\"Indicates if card was created via new product or service\").nullable().optional(),\n}).describe(\"Card information linked to the spend limit.\");\nconst RampGetSpendLimit_UserSchema: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the user\"),\n}).describe(\"User with access to spend from the limit.\");\nconst RampGetSpendLimit_AmountCurrencySchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Monetary amount in minor units (cents)\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate for minor units (e.g., 100 for cents to dollars)\").nullable().optional(),\n}).describe(\"Amount and currency representation.\");\nconst RampGetSpendLimit_BalanceSchema: z.ZodTypeAny = z.object({\n total: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n cleared: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n pending: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n}).describe(\"Details about the current balance of the limit.\");\nconst RampGetSpendLimit_SuspensionSchema: z.ZodTypeAny = z.object({\n inserted_at: z.string().describe(\"Timestamp when suspension was applied in ISO8601 format\"),\n acting_user_id: z.string().describe(\"ID of the user who initiated the suspension\"),\n suspended_by_ramp: z.boolean().describe(\"Indicates if the suspension was initiated by Ramp\"),\n}).describe(\"Suspension (lock) on the limit.\");\nconst RampGetSpendLimit_RestrictionsSchema: z.ZodTypeAny = z.object({\n limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n interval: z.string().describe(\"Spending interval (e.g., MONTHLY, YEARLY)\").nullable().optional(),\n auto_lock_date: z.string().describe(\"Date when the limit will be automatically locked in ISO8601 format\").nullable().optional(),\n allowed_vendors: z.array(z.number().int()).describe(\"List of allowed vendor IDs\").nullable().optional(),\n blocked_vendors: z.array(z.number().int()).describe(\"List of blocked vendor IDs\").nullable().optional(),\n temporary_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n start_of_interval: z.string().describe(\"Start of current interval in ISO8601 format\").nullable().optional(),\n allowed_categories: z.array(z.number().int()).describe(\"List of allowed merchant category codes\").nullable().optional(),\n blocked_categories: z.array(z.number().int()).describe(\"List of blocked merchant category codes\").nullable().optional(),\n next_interval_reset: z.string().describe(\"Next interval reset date in ISO8601 format\").nullable().optional(),\n transaction_amount_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n}).describe(\"Restrictions imposed on this limit.\");\nconst RampGetSpendLimit_PermittedSpendTypesSchema: z.ZodTypeAny = z.object({\n primary_card_enabled: z.boolean().describe(\"Indicates if primary card spending is enabled\"),\n reimbursements_enabled: z.boolean().describe(\"Indicates if reimbursements are enabled\"),\n}).describe(\"Specifies the permitted spend types of the limit.\");\nconst RampGetSpendLimit_FieldValueSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The field value\").nullable().optional(),\n}).describe(\"Field value for custom form fields.\");\nconst RampGetSpendLimit_FormFieldSchema: z.ZodTypeAny = z.object({\n value: RampGetSpendLimit_FieldValueSchema.nullable().optional(),\n field_type: z.string().describe(\"Type of the field (e.g., TEXT)\").nullable().optional(),\n mapped_fields: z.array(z.string()).describe(\"List of mapped field identifiers\").nullable().optional(),\n}).describe(\"Custom form field definition.\");\nconst RampGetSpendLimit_CustomFormFieldSchema: z.ZodTypeAny = z.object({\n field: RampGetSpendLimit_FormFieldSchema.nullable().optional(),\n label: z.string().describe(\"Field label\").nullable().optional(),\n field_id: z.string().describe(\"Unique identifier of the field\").nullable().optional(),\n required: z.boolean().describe(\"Indicates if field is required\").nullable().optional(),\n conditions: z.record(z.string(), z.unknown()).describe(\"Field conditions\").nullable().optional(),\n description: z.string().describe(\"Field description\").nullable().optional(),\n validation_errors: z.array(z.string()).describe(\"List of validation errors\").nullable().optional(),\n value_display_string: z.string().describe(\"Display string for the field value\").nullable().optional(),\n is_mapped_to_ironclad_field: z.boolean().describe(\"Indicates if mapped to Ironclad field\").nullable().optional(),\n is_used_in_approval_workflow_condition: z.boolean().describe(\"Indicates if used in approval workflow condition\").nullable().optional(),\n is_used_in_custom_form_workflow_condition: z.boolean().describe(\"Indicates if used in custom form workflow condition\").nullable().optional(),\n}).describe(\"Custom form field with metadata.\");\nconst RampGetSpendLimit_CustomFormSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label of the custom form\").nullable().optional(),\n fields: z.array(RampGetSpendLimit_CustomFormFieldSchema).describe(\"List of fields in the custom form\").nullable().optional(),\n}).describe(\"Custom form definition.\");\nconst RampGetSpendLimit_CustomFormCollectionLogEntrySchema: z.ZodTypeAny = z.object({\n forms: z.array(RampGetSpendLimit_CustomFormSchema).describe(\"List of custom forms\").nullable().optional(),\n label: z.string().describe(\"Label of the collection\").nullable().optional(),\n}).describe(\"Custom form collection log entry.\");\nconst RampGetSpendLimit_CustomFormCollectionResponseSchema: z.ZodTypeAny = z.object({\n custom_form_collection_log_entry: RampGetSpendLimit_CustomFormCollectionLogEntrySchema.nullable().optional(),\n}).describe(\"Custom form collection with an associated response log entry.\");\nexport const RampGetSpendLimitOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the limit\"),\n cards: z.array(RampGetSpendLimit_CardSchema).describe(\"List of cards linked to this limit\"),\n state: z.string().describe(\"Current state of the limit (ACTIVE, SUSPENDED, or TERMINATED)\"),\n users: z.array(RampGetSpendLimit_UserSchema).describe(\"Members who can spend from the limit\"),\n balance: RampGetSpendLimit_BalanceSchema.nullable().optional(),\n entity_id: z.string().describe(\"Associated business entity of the limit (UUID)\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the spend limit is created in ISO8601 format\"),\n suspension: RampGetSpendLimit_SuspensionSchema.nullable().optional(),\n display_name: z.string().describe(\"Display name of the limit and all linked cards\"),\n is_shareable: z.boolean().describe(\"Whether this spend limit is shareable\"),\n restrictions: RampGetSpendLimit_RestrictionsSchema.nullable().optional(),\n spend_program_id: z.string().describe(\"Unique identifier of the associated Spend Program (UUID)\").nullable().optional(),\n permitted_spend_types: RampGetSpendLimit_PermittedSpendTypesSchema.nullable(),\n has_program_overridden: z.boolean().describe(\"Indicates if the limit's settings override those of its Spend Program\"),\n custom_form_collection_response: RampGetSpendLimit_CustomFormCollectionResponseSchema.nullable().optional(),\n}).describe(\"Response containing detailed information about a spend limit.\");\n\nexport const rampGetSpendLimit = action(\"RAMP_GET_SPEND_LIMIT\", {\n slug: \"ramp-get-spend-limit\",\n name: \"Get Spend Limit\",\n description: \"Tool to fetch detailed information about a specific spend limit. Use when you need to retrieve comprehensive limit details including balance, restrictions, linked cards, and users.\",\n input: RampGetSpendLimitInput,\n output: RampGetSpendLimitOutput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SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC5F,YAAY,mCAAmC,SAAS,CAAC,CAAC,SAAS;CACnE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAClF,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CAC1E,cAAc,qCAAqC,SAAS,CAAC,CAAC,SAAS;CACvE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,uBAAuB,4CAA4C,SAAS;CAC5E,wBAAwBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE;CACpH,iCAAiC,qDAAqD,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,oBAAoBC,eAAAA,OAAO,wBAAwB;CAC9D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-spend-limit.d.ts
|
|
4
|
+
declare const RampGetSpendLimitInput: z.ZodTypeAny;
|
|
5
|
+
declare const RampGetSpendLimitOutput: z.ZodTypeAny;
|
|
6
|
+
declare const rampGetSpendLimit: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { rampGetSpendLimit };
|
|
9
|
+
//# sourceMappingURL=get-spend-limit.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-spend-limit.d.cts","names":[],"sources":["../../src/actions/get-spend-limit.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cA8EW,uBAAA,EAAyB,CAAA,CAAE,UAgBoC;AAAA,cAE/D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-spend-limit.d.ts
|
|
4
|
+
declare const RampGetSpendLimitInput: z.ZodTypeAny;
|
|
5
|
+
declare const RampGetSpendLimitOutput: z.ZodTypeAny;
|
|
6
|
+
declare const rampGetSpendLimit: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { rampGetSpendLimit };
|
|
9
|
+
//# sourceMappingURL=get-spend-limit.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-spend-limit.d.mts","names":[],"sources":["../../src/actions/get-spend-limit.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cA8EW,uBAAA,EAAyB,CAAA,CAAE,UAgBoC;AAAA,cAE/D,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-spend-limit.ts
|
|
4
|
+
const RampGetSpendLimitInput = z.object({ spend_limit_id: z.string().describe("The unique identifier (UUID) of the spend limit to retrieve") });
|
|
5
|
+
const RampGetSpendLimit_CardSchema = z.object({
|
|
6
|
+
card_id: z.string().describe("Unique identifier of the card"),
|
|
7
|
+
last_four: z.string().describe("Last four digits of the card number").nullable().optional(),
|
|
8
|
+
created_at: z.string().describe("Card creation timestamp in ISO8601 format").nullable().optional(),
|
|
9
|
+
expiration: z.string().describe("Card expiration date in MMYY format").nullable().optional(),
|
|
10
|
+
is_ap_card: z.boolean().describe("Indicates if this is an accounts payable card").nullable().optional(),
|
|
11
|
+
display_name: z.string().describe("Display name of the card").nullable().optional(),
|
|
12
|
+
cardholder_id: z.string().describe("Unique identifier of the cardholder").nullable().optional(),
|
|
13
|
+
via_new_product_or_service: z.boolean().describe("Indicates if card was created via new product or service").nullable().optional()
|
|
14
|
+
}).describe("Card information linked to the spend limit.");
|
|
15
|
+
const RampGetSpendLimit_UserSchema = z.object({ user_id: z.string().describe("Unique identifier of the user") }).describe("User with access to spend from the limit.");
|
|
16
|
+
const RampGetSpendLimit_AmountCurrencySchema = z.object({
|
|
17
|
+
amount: z.number().describe("Monetary amount in minor units (cents)").nullable().optional(),
|
|
18
|
+
currency_code: z.string().describe("Currency code (e.g., USD)").nullable().optional(),
|
|
19
|
+
minor_unit_conversion_rate: z.number().int().describe("Conversion rate for minor units (e.g., 100 for cents to dollars)").nullable().optional()
|
|
20
|
+
}).describe("Amount and currency representation.");
|
|
21
|
+
const RampGetSpendLimit_BalanceSchema = z.object({
|
|
22
|
+
total: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
23
|
+
cleared: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
24
|
+
pending: RampGetSpendLimit_AmountCurrencySchema.nullable().optional()
|
|
25
|
+
}).describe("Details about the current balance of the limit.");
|
|
26
|
+
const RampGetSpendLimit_SuspensionSchema = z.object({
|
|
27
|
+
inserted_at: z.string().describe("Timestamp when suspension was applied in ISO8601 format"),
|
|
28
|
+
acting_user_id: z.string().describe("ID of the user who initiated the suspension"),
|
|
29
|
+
suspended_by_ramp: z.boolean().describe("Indicates if the suspension was initiated by Ramp")
|
|
30
|
+
}).describe("Suspension (lock) on the limit.");
|
|
31
|
+
const RampGetSpendLimit_RestrictionsSchema = z.object({
|
|
32
|
+
limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
33
|
+
interval: z.string().describe("Spending interval (e.g., MONTHLY, YEARLY)").nullable().optional(),
|
|
34
|
+
auto_lock_date: z.string().describe("Date when the limit will be automatically locked in ISO8601 format").nullable().optional(),
|
|
35
|
+
allowed_vendors: z.array(z.number().int()).describe("List of allowed vendor IDs").nullable().optional(),
|
|
36
|
+
blocked_vendors: z.array(z.number().int()).describe("List of blocked vendor IDs").nullable().optional(),
|
|
37
|
+
temporary_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),
|
|
38
|
+
start_of_interval: z.string().describe("Start of current interval in ISO8601 format").nullable().optional(),
|
|
39
|
+
allowed_categories: z.array(z.number().int()).describe("List of allowed merchant category codes").nullable().optional(),
|
|
40
|
+
blocked_categories: z.array(z.number().int()).describe("List of blocked merchant category codes").nullable().optional(),
|
|
41
|
+
next_interval_reset: z.string().describe("Next interval reset date in ISO8601 format").nullable().optional(),
|
|
42
|
+
transaction_amount_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional()
|
|
43
|
+
}).describe("Restrictions imposed on this limit.");
|
|
44
|
+
const RampGetSpendLimit_PermittedSpendTypesSchema = z.object({
|
|
45
|
+
primary_card_enabled: z.boolean().describe("Indicates if primary card spending is enabled"),
|
|
46
|
+
reimbursements_enabled: z.boolean().describe("Indicates if reimbursements are enabled")
|
|
47
|
+
}).describe("Specifies the permitted spend types of the limit.");
|
|
48
|
+
const RampGetSpendLimit_FieldValueSchema = z.object({ value: z.string().describe("The field value").nullable().optional() }).describe("Field value for custom form fields.");
|
|
49
|
+
const RampGetSpendLimit_FormFieldSchema = z.object({
|
|
50
|
+
value: RampGetSpendLimit_FieldValueSchema.nullable().optional(),
|
|
51
|
+
field_type: z.string().describe("Type of the field (e.g., TEXT)").nullable().optional(),
|
|
52
|
+
mapped_fields: z.array(z.string()).describe("List of mapped field identifiers").nullable().optional()
|
|
53
|
+
}).describe("Custom form field definition.");
|
|
54
|
+
const RampGetSpendLimit_CustomFormFieldSchema = z.object({
|
|
55
|
+
field: RampGetSpendLimit_FormFieldSchema.nullable().optional(),
|
|
56
|
+
label: z.string().describe("Field label").nullable().optional(),
|
|
57
|
+
field_id: z.string().describe("Unique identifier of the field").nullable().optional(),
|
|
58
|
+
required: z.boolean().describe("Indicates if field is required").nullable().optional(),
|
|
59
|
+
conditions: z.record(z.string(), z.unknown()).describe("Field conditions").nullable().optional(),
|
|
60
|
+
description: z.string().describe("Field description").nullable().optional(),
|
|
61
|
+
validation_errors: z.array(z.string()).describe("List of validation errors").nullable().optional(),
|
|
62
|
+
value_display_string: z.string().describe("Display string for the field value").nullable().optional(),
|
|
63
|
+
is_mapped_to_ironclad_field: z.boolean().describe("Indicates if mapped to Ironclad field").nullable().optional(),
|
|
64
|
+
is_used_in_approval_workflow_condition: z.boolean().describe("Indicates if used in approval workflow condition").nullable().optional(),
|
|
65
|
+
is_used_in_custom_form_workflow_condition: z.boolean().describe("Indicates if used in custom form workflow condition").nullable().optional()
|
|
66
|
+
}).describe("Custom form field with metadata.");
|
|
67
|
+
const RampGetSpendLimit_CustomFormSchema = z.object({
|
|
68
|
+
label: z.string().describe("Label of the custom form").nullable().optional(),
|
|
69
|
+
fields: z.array(RampGetSpendLimit_CustomFormFieldSchema).describe("List of fields in the custom form").nullable().optional()
|
|
70
|
+
}).describe("Custom form definition.");
|
|
71
|
+
const RampGetSpendLimit_CustomFormCollectionLogEntrySchema = z.object({
|
|
72
|
+
forms: z.array(RampGetSpendLimit_CustomFormSchema).describe("List of custom forms").nullable().optional(),
|
|
73
|
+
label: z.string().describe("Label of the collection").nullable().optional()
|
|
74
|
+
}).describe("Custom form collection log entry.");
|
|
75
|
+
const RampGetSpendLimit_CustomFormCollectionResponseSchema = z.object({ custom_form_collection_log_entry: RampGetSpendLimit_CustomFormCollectionLogEntrySchema.nullable().optional() }).describe("Custom form collection with an associated response log entry.");
|
|
76
|
+
const rampGetSpendLimit = action("RAMP_GET_SPEND_LIMIT", {
|
|
77
|
+
slug: "ramp-get-spend-limit",
|
|
78
|
+
name: "Get Spend Limit",
|
|
79
|
+
description: "Tool to fetch detailed information about a specific spend limit. Use when you need to retrieve comprehensive limit details including balance, restrictions, linked cards, and users.",
|
|
80
|
+
input: RampGetSpendLimitInput,
|
|
81
|
+
output: z.object({
|
|
82
|
+
id: z.string().describe("Unique identifier of the limit"),
|
|
83
|
+
cards: z.array(RampGetSpendLimit_CardSchema).describe("List of cards linked to this limit"),
|
|
84
|
+
state: z.string().describe("Current state of the limit (ACTIVE, SUSPENDED, or TERMINATED)"),
|
|
85
|
+
users: z.array(RampGetSpendLimit_UserSchema).describe("Members who can spend from the limit"),
|
|
86
|
+
balance: RampGetSpendLimit_BalanceSchema.nullable().optional(),
|
|
87
|
+
entity_id: z.string().describe("Associated business entity of the limit (UUID)").nullable().optional(),
|
|
88
|
+
created_at: z.string().describe("Time at which the spend limit is created in ISO8601 format"),
|
|
89
|
+
suspension: RampGetSpendLimit_SuspensionSchema.nullable().optional(),
|
|
90
|
+
display_name: z.string().describe("Display name of the limit and all linked cards"),
|
|
91
|
+
is_shareable: z.boolean().describe("Whether this spend limit is shareable"),
|
|
92
|
+
restrictions: RampGetSpendLimit_RestrictionsSchema.nullable().optional(),
|
|
93
|
+
spend_program_id: z.string().describe("Unique identifier of the associated Spend Program (UUID)").nullable().optional(),
|
|
94
|
+
permitted_spend_types: RampGetSpendLimit_PermittedSpendTypesSchema.nullable(),
|
|
95
|
+
has_program_overridden: z.boolean().describe("Indicates if the limit's settings override those of its Spend Program"),
|
|
96
|
+
custom_form_collection_response: RampGetSpendLimit_CustomFormCollectionResponseSchema.nullable().optional()
|
|
97
|
+
}).describe("Response containing detailed information about a spend limit.")
|
|
98
|
+
});
|
|
99
|
+
//#endregion
|
|
100
|
+
export { rampGetSpendLimit };
|
|
101
|
+
|
|
102
|
+
//# sourceMappingURL=get-spend-limit.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-spend-limit.mjs","names":[],"sources":["../../src/actions/get-spend-limit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetSpendLimitInput: z.ZodTypeAny = z.object({\n spend_limit_id: z.string().describe(\"The unique identifier (UUID) of the spend limit to retrieve\"),\n});\nconst RampGetSpendLimit_CardSchema: z.ZodTypeAny = z.object({\n card_id: z.string().describe(\"Unique identifier of the card\"),\n last_four: z.string().describe(\"Last four digits of the card number\").nullable().optional(),\n created_at: z.string().describe(\"Card creation timestamp in ISO8601 format\").nullable().optional(),\n expiration: z.string().describe(\"Card expiration date in MMYY format\").nullable().optional(),\n is_ap_card: z.boolean().describe(\"Indicates if this is an accounts payable card\").nullable().optional(),\n display_name: z.string().describe(\"Display name of the card\").nullable().optional(),\n cardholder_id: z.string().describe(\"Unique identifier of the cardholder\").nullable().optional(),\n via_new_product_or_service: z.boolean().describe(\"Indicates if card was created via new product or service\").nullable().optional(),\n}).describe(\"Card information linked to the spend limit.\");\nconst RampGetSpendLimit_UserSchema: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique identifier of the user\"),\n}).describe(\"User with access to spend from the limit.\");\nconst RampGetSpendLimit_AmountCurrencySchema: z.ZodTypeAny = z.object({\n amount: z.number().describe(\"Monetary amount in minor units (cents)\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code (e.g., USD)\").nullable().optional(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate for minor units (e.g., 100 for cents to dollars)\").nullable().optional(),\n}).describe(\"Amount and currency representation.\");\nconst RampGetSpendLimit_BalanceSchema: z.ZodTypeAny = z.object({\n total: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n cleared: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n pending: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n}).describe(\"Details about the current balance of the limit.\");\nconst RampGetSpendLimit_SuspensionSchema: z.ZodTypeAny = z.object({\n inserted_at: z.string().describe(\"Timestamp when suspension was applied in ISO8601 format\"),\n acting_user_id: z.string().describe(\"ID of the user who initiated the suspension\"),\n suspended_by_ramp: z.boolean().describe(\"Indicates if the suspension was initiated by Ramp\"),\n}).describe(\"Suspension (lock) on the limit.\");\nconst RampGetSpendLimit_RestrictionsSchema: z.ZodTypeAny = z.object({\n limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n interval: z.string().describe(\"Spending interval (e.g., MONTHLY, YEARLY)\").nullable().optional(),\n auto_lock_date: z.string().describe(\"Date when the limit will be automatically locked in ISO8601 format\").nullable().optional(),\n allowed_vendors: z.array(z.number().int()).describe(\"List of allowed vendor IDs\").nullable().optional(),\n blocked_vendors: z.array(z.number().int()).describe(\"List of blocked vendor IDs\").nullable().optional(),\n temporary_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n start_of_interval: z.string().describe(\"Start of current interval in ISO8601 format\").nullable().optional(),\n allowed_categories: z.array(z.number().int()).describe(\"List of allowed merchant category codes\").nullable().optional(),\n blocked_categories: z.array(z.number().int()).describe(\"List of blocked merchant category codes\").nullable().optional(),\n next_interval_reset: z.string().describe(\"Next interval reset date in ISO8601 format\").nullable().optional(),\n transaction_amount_limit: RampGetSpendLimit_AmountCurrencySchema.nullable().optional(),\n}).describe(\"Restrictions imposed on this limit.\");\nconst RampGetSpendLimit_PermittedSpendTypesSchema: z.ZodTypeAny = z.object({\n primary_card_enabled: z.boolean().describe(\"Indicates if primary card spending is enabled\"),\n reimbursements_enabled: z.boolean().describe(\"Indicates if reimbursements are enabled\"),\n}).describe(\"Specifies the permitted spend types of the limit.\");\nconst RampGetSpendLimit_FieldValueSchema: z.ZodTypeAny = z.object({\n value: z.string().describe(\"The field value\").nullable().optional(),\n}).describe(\"Field value for custom form fields.\");\nconst RampGetSpendLimit_FormFieldSchema: z.ZodTypeAny = z.object({\n value: RampGetSpendLimit_FieldValueSchema.nullable().optional(),\n field_type: z.string().describe(\"Type of the field (e.g., TEXT)\").nullable().optional(),\n mapped_fields: z.array(z.string()).describe(\"List of mapped field identifiers\").nullable().optional(),\n}).describe(\"Custom form field definition.\");\nconst RampGetSpendLimit_CustomFormFieldSchema: z.ZodTypeAny = z.object({\n field: RampGetSpendLimit_FormFieldSchema.nullable().optional(),\n label: z.string().describe(\"Field label\").nullable().optional(),\n field_id: z.string().describe(\"Unique identifier of the field\").nullable().optional(),\n required: z.boolean().describe(\"Indicates if field is required\").nullable().optional(),\n conditions: z.record(z.string(), z.unknown()).describe(\"Field conditions\").nullable().optional(),\n description: z.string().describe(\"Field description\").nullable().optional(),\n validation_errors: z.array(z.string()).describe(\"List of validation errors\").nullable().optional(),\n value_display_string: z.string().describe(\"Display string for the field value\").nullable().optional(),\n is_mapped_to_ironclad_field: z.boolean().describe(\"Indicates if mapped to Ironclad field\").nullable().optional(),\n is_used_in_approval_workflow_condition: z.boolean().describe(\"Indicates if used in approval workflow condition\").nullable().optional(),\n is_used_in_custom_form_workflow_condition: z.boolean().describe(\"Indicates if used in custom form workflow condition\").nullable().optional(),\n}).describe(\"Custom form field with metadata.\");\nconst RampGetSpendLimit_CustomFormSchema: z.ZodTypeAny = z.object({\n label: z.string().describe(\"Label of the custom form\").nullable().optional(),\n fields: z.array(RampGetSpendLimit_CustomFormFieldSchema).describe(\"List of fields in the custom form\").nullable().optional(),\n}).describe(\"Custom form definition.\");\nconst RampGetSpendLimit_CustomFormCollectionLogEntrySchema: z.ZodTypeAny = z.object({\n forms: z.array(RampGetSpendLimit_CustomFormSchema).describe(\"List of custom forms\").nullable().optional(),\n label: z.string().describe(\"Label of the collection\").nullable().optional(),\n}).describe(\"Custom form collection log entry.\");\nconst RampGetSpendLimit_CustomFormCollectionResponseSchema: z.ZodTypeAny = z.object({\n custom_form_collection_log_entry: RampGetSpendLimit_CustomFormCollectionLogEntrySchema.nullable().optional(),\n}).describe(\"Custom form collection with an associated response log entry.\");\nexport const RampGetSpendLimitOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the limit\"),\n cards: z.array(RampGetSpendLimit_CardSchema).describe(\"List of cards linked to this limit\"),\n state: z.string().describe(\"Current state of the limit (ACTIVE, SUSPENDED, or TERMINATED)\"),\n users: z.array(RampGetSpendLimit_UserSchema).describe(\"Members who can spend from the limit\"),\n balance: RampGetSpendLimit_BalanceSchema.nullable().optional(),\n entity_id: z.string().describe(\"Associated business entity of the limit (UUID)\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the spend limit is created in ISO8601 format\"),\n suspension: RampGetSpendLimit_SuspensionSchema.nullable().optional(),\n display_name: z.string().describe(\"Display name of the limit and all linked cards\"),\n is_shareable: z.boolean().describe(\"Whether this spend limit is shareable\"),\n restrictions: RampGetSpendLimit_RestrictionsSchema.nullable().optional(),\n spend_program_id: z.string().describe(\"Unique identifier of the associated Spend Program (UUID)\").nullable().optional(),\n permitted_spend_types: RampGetSpendLimit_PermittedSpendTypesSchema.nullable(),\n has_program_overridden: z.boolean().describe(\"Indicates if the limit's settings override those of its Spend Program\"),\n custom_form_collection_response: RampGetSpendLimit_CustomFormCollectionResponseSchema.nullable().optional(),\n}).describe(\"Response containing detailed information about a spend limit.\");\n\nexport const rampGetSpendLimit = action(\"RAMP_GET_SPEND_LIMIT\", {\n slug: \"ramp-get-spend-limit\",\n name: \"Get Spend Limit\",\n description: \"Tool to fetch detailed information about a specific spend limit. Use when you need to retrieve comprehensive limit details including balance, restrictions, linked cards, and users.\",\n input: RampGetSpendLimitInput,\n output: RampGetSpendLimitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO,EAC3D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EACnG,CAAC;AACD,MAAM,+BAA6C,EAAE,OAAO;CAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAA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,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EACxD,OAAO,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,oCAAoC;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EAC1F,OAAO,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,sCAAsC;EAC5F,SAAS,gCAAgC,SAAS,CAAC,CAAC,SAAS;EAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC5F,YAAY,mCAAmC,SAAS,CAAC,CAAC,SAAS;EACnE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAClF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;EAC1E,cAAc,qCAAqC,SAAS,CAAC,CAAC,SAAS;EACvE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,uBAAuB,4CAA4C,SAAS;EAC5E,wBAAwB,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE;EACpH,iCAAiC,qDAAqD,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-statement.ts
|
|
4
|
+
const RampGetStatementInput = zod.z.object({
|
|
5
|
+
format: zod.z.enum([
|
|
6
|
+
"json",
|
|
7
|
+
"pdf",
|
|
8
|
+
"csv"
|
|
9
|
+
]).default("json").describe("Format of the statement: json, pdf, csv").optional(),
|
|
10
|
+
statement_id: zod.z.string().describe("ID of the statement to retrieve")
|
|
11
|
+
});
|
|
12
|
+
const RampGetStatement_MonetaryAmountSchema = zod.z.object({
|
|
13
|
+
amount: zod.z.number().int().describe("The amount in minor units (e.g., cents)."),
|
|
14
|
+
currency_code: zod.z.string().describe("ISO 4217 currency code (e.g., 'USD')."),
|
|
15
|
+
minor_unit_conversion_rate: zod.z.number().int().describe("Conversion rate from minor units to major currency units (e.g., 100 for USD).")
|
|
16
|
+
}).passthrough().describe("Represents a monetary amount with currency information.");
|
|
17
|
+
const RampGetStatement_StatementLineSchema = zod.z.object({
|
|
18
|
+
id: zod.z.string().describe("Unique identifier for the statement line."),
|
|
19
|
+
type: zod.z.string().describe("Type of statement line (e.g., 'CARD_TRANSACTION')."),
|
|
20
|
+
cleared_at: zod.z.string().describe("Timestamp when the transaction was cleared (ISO 8601 format).").nullable().optional(),
|
|
21
|
+
created_at: zod.z.string().describe("Timestamp when the record was created (ISO 8601 format).").nullable().optional()
|
|
22
|
+
}).passthrough().describe("Represents a line item within a statement.");
|
|
23
|
+
const RampGetStatement_StatementDataSchema = zod.z.object({
|
|
24
|
+
id: zod.z.string().describe("Unique identifier of the statement."),
|
|
25
|
+
credits: RampGetStatement_MonetaryAmountSchema.nullable().optional(),
|
|
26
|
+
end_date: zod.z.string().describe("End date of the statement period (ISO 8601 format).").nullable().optional(),
|
|
27
|
+
payments: RampGetStatement_MonetaryAmountSchema.nullable(),
|
|
28
|
+
start_date: zod.z.string().describe("Start date of the statement period (ISO 8601 format).").nullable().optional(),
|
|
29
|
+
statement_url: zod.z.string().describe("URL to download the statement PDF.").nullable().optional(),
|
|
30
|
+
ending_balance: RampGetStatement_MonetaryAmountSchema.nullable(),
|
|
31
|
+
opening_balance: RampGetStatement_MonetaryAmountSchema.nullable(),
|
|
32
|
+
statement_lines: zod.z.array(RampGetStatement_StatementLineSchema).describe("List of statement line items.").nullable().optional()
|
|
33
|
+
}).passthrough().describe("Detailed statement data returned by the API.");
|
|
34
|
+
const RampGetStatement_FileDownloadDataSchema = zod.z.object({
|
|
35
|
+
id: zod.z.string().describe("Unique identifier of the statement."),
|
|
36
|
+
download_url: zod.z.string().describe("URL to download the statement file.").nullable().optional()
|
|
37
|
+
}).passthrough().describe("Data returned when requesting a statement in PDF or CSV format.");
|
|
38
|
+
const RampGetStatementOutput = zod.z.object({ response_data: zod.z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]) });
|
|
39
|
+
const rampGetStatement = require_action.action("RAMP_GET_STATEMENT", {
|
|
40
|
+
slug: "ramp-get-statement",
|
|
41
|
+
name: "Get Statement",
|
|
42
|
+
description: "Tool for retrieving statement details or downloading statements. Supports JSON, PDF, and CSV formats for financial reporting.",
|
|
43
|
+
input: RampGetStatementInput,
|
|
44
|
+
output: RampGetStatementOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.rampGetStatement = rampGetStatement;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=get-statement.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-statement.cjs","names":["z","action"],"sources":["../../src/actions/get-statement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetStatementInput: z.ZodTypeAny = z.object({\n format: z.enum([\"json\", \"pdf\", \"csv\"]).default(\"json\").describe(\"Format of the statement: json, pdf, csv\").optional(),\n statement_id: z.string().describe(\"ID of the statement to retrieve\"),\n});\nconst RampGetStatement_MonetaryAmountSchema: z.ZodTypeAny = z.object({\n amount: z.number().int().describe(\"The amount in minor units (e.g., cents).\"),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD').\"),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major currency units (e.g., 100 for USD).\"),\n}).passthrough().describe(\"Represents a monetary amount with currency information.\");\nconst RampGetStatement_StatementLineSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the statement line.\"),\n type: z.string().describe(\"Type of statement line (e.g., 'CARD_TRANSACTION').\"),\n cleared_at: z.string().describe(\"Timestamp when the transaction was cleared (ISO 8601 format).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Represents a line item within a statement.\");\nconst RampGetStatement_StatementDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\"),\n credits: RampGetStatement_MonetaryAmountSchema.nullable().optional(),\n end_date: z.string().describe(\"End date of the statement period (ISO 8601 format).\").nullable().optional(),\n payments: RampGetStatement_MonetaryAmountSchema.nullable(),\n start_date: z.string().describe(\"Start date of the statement period (ISO 8601 format).\").nullable().optional(),\n statement_url: z.string().describe(\"URL to download the statement PDF.\").nullable().optional(),\n ending_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n opening_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n statement_lines: z.array(RampGetStatement_StatementLineSchema).describe(\"List of statement line items.\").nullable().optional(),\n}).passthrough().describe(\"Detailed statement data returned by the API.\");\nconst RampGetStatement_FileDownloadDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\"),\n download_url: z.string().describe(\"URL to download the statement file.\").nullable().optional(),\n}).passthrough().describe(\"Data returned when requesting a statement in PDF or CSV format.\");\nexport const RampGetStatementOutput: z.ZodTypeAny = z.object({\n response_data: z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]),\n});\n\nexport const rampGetStatement = action(\"RAMP_GET_STATEMENT\", {\n slug: \"ramp-get-statement\",\n name: \"Get Statement\",\n description: \"Tool for retrieving statement details or downloading statements. Supports JSON, PDF, and CSV formats for financial reporting.\",\n input: RampGetStatementInput,\n output: RampGetStatementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,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SAAS,CAAC,CAAC,SAAS;CAC7F,gBAAgB,sCAAsC,SAAS;CAC/D,iBAAiB,sCAAsC,SAAS;CAChE,iBAAiBA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAC3F,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,eAAeA,IAAAA,EAAE,MAAM,CAAC,sCAAsC,uCAAuC,CAAC,EACxG,CAAC;AAED,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-statement.d.ts
|
|
4
|
+
declare const RampGetStatementInput: z.ZodTypeAny;
|
|
5
|
+
declare const RampGetStatementOutput: z.ZodTypeAny;
|
|
6
|
+
declare const rampGetStatement: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { rampGetStatement };
|
|
9
|
+
//# sourceMappingURL=get-statement.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-statement.d.cts","names":[],"sources":["../../src/actions/get-statement.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGpC;AAAA,cA2BW,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-statement.d.ts
|
|
4
|
+
declare const RampGetStatementInput: z.ZodTypeAny;
|
|
5
|
+
declare const RampGetStatementOutput: z.ZodTypeAny;
|
|
6
|
+
declare const rampGetStatement: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { rampGetStatement };
|
|
9
|
+
//# sourceMappingURL=get-statement.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-statement.d.mts","names":[],"sources":["../../src/actions/get-statement.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAGpC;AAAA,cA2BW,sBAAA,EAAwB,CAAA,CAAE,UAErC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-statement.ts
|
|
4
|
+
const RampGetStatementInput = z.object({
|
|
5
|
+
format: z.enum([
|
|
6
|
+
"json",
|
|
7
|
+
"pdf",
|
|
8
|
+
"csv"
|
|
9
|
+
]).default("json").describe("Format of the statement: json, pdf, csv").optional(),
|
|
10
|
+
statement_id: z.string().describe("ID of the statement to retrieve")
|
|
11
|
+
});
|
|
12
|
+
const RampGetStatement_MonetaryAmountSchema = z.object({
|
|
13
|
+
amount: z.number().int().describe("The amount in minor units (e.g., cents)."),
|
|
14
|
+
currency_code: z.string().describe("ISO 4217 currency code (e.g., 'USD')."),
|
|
15
|
+
minor_unit_conversion_rate: z.number().int().describe("Conversion rate from minor units to major currency units (e.g., 100 for USD).")
|
|
16
|
+
}).passthrough().describe("Represents a monetary amount with currency information.");
|
|
17
|
+
const RampGetStatement_StatementLineSchema = z.object({
|
|
18
|
+
id: z.string().describe("Unique identifier for the statement line."),
|
|
19
|
+
type: z.string().describe("Type of statement line (e.g., 'CARD_TRANSACTION')."),
|
|
20
|
+
cleared_at: z.string().describe("Timestamp when the transaction was cleared (ISO 8601 format).").nullable().optional(),
|
|
21
|
+
created_at: z.string().describe("Timestamp when the record was created (ISO 8601 format).").nullable().optional()
|
|
22
|
+
}).passthrough().describe("Represents a line item within a statement.");
|
|
23
|
+
const RampGetStatement_StatementDataSchema = z.object({
|
|
24
|
+
id: z.string().describe("Unique identifier of the statement."),
|
|
25
|
+
credits: RampGetStatement_MonetaryAmountSchema.nullable().optional(),
|
|
26
|
+
end_date: z.string().describe("End date of the statement period (ISO 8601 format).").nullable().optional(),
|
|
27
|
+
payments: RampGetStatement_MonetaryAmountSchema.nullable(),
|
|
28
|
+
start_date: z.string().describe("Start date of the statement period (ISO 8601 format).").nullable().optional(),
|
|
29
|
+
statement_url: z.string().describe("URL to download the statement PDF.").nullable().optional(),
|
|
30
|
+
ending_balance: RampGetStatement_MonetaryAmountSchema.nullable(),
|
|
31
|
+
opening_balance: RampGetStatement_MonetaryAmountSchema.nullable(),
|
|
32
|
+
statement_lines: z.array(RampGetStatement_StatementLineSchema).describe("List of statement line items.").nullable().optional()
|
|
33
|
+
}).passthrough().describe("Detailed statement data returned by the API.");
|
|
34
|
+
const RampGetStatement_FileDownloadDataSchema = z.object({
|
|
35
|
+
id: z.string().describe("Unique identifier of the statement."),
|
|
36
|
+
download_url: z.string().describe("URL to download the statement file.").nullable().optional()
|
|
37
|
+
}).passthrough().describe("Data returned when requesting a statement in PDF or CSV format.");
|
|
38
|
+
const rampGetStatement = action("RAMP_GET_STATEMENT", {
|
|
39
|
+
slug: "ramp-get-statement",
|
|
40
|
+
name: "Get Statement",
|
|
41
|
+
description: "Tool for retrieving statement details or downloading statements. Supports JSON, PDF, and CSV formats for financial reporting.",
|
|
42
|
+
input: RampGetStatementInput,
|
|
43
|
+
output: z.object({ response_data: z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]) })
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { rampGetStatement };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=get-statement.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-statement.mjs","names":[],"sources":["../../src/actions/get-statement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampGetStatementInput: z.ZodTypeAny = z.object({\n format: z.enum([\"json\", \"pdf\", \"csv\"]).default(\"json\").describe(\"Format of the statement: json, pdf, csv\").optional(),\n statement_id: z.string().describe(\"ID of the statement to retrieve\"),\n});\nconst RampGetStatement_MonetaryAmountSchema: z.ZodTypeAny = z.object({\n amount: z.number().int().describe(\"The amount in minor units (e.g., cents).\"),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD').\"),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major currency units (e.g., 100 for USD).\"),\n}).passthrough().describe(\"Represents a monetary amount with currency information.\");\nconst RampGetStatement_StatementLineSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the statement line.\"),\n type: z.string().describe(\"Type of statement line (e.g., 'CARD_TRANSACTION').\"),\n cleared_at: z.string().describe(\"Timestamp when the transaction was cleared (ISO 8601 format).\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the record was created (ISO 8601 format).\").nullable().optional(),\n}).passthrough().describe(\"Represents a line item within a statement.\");\nconst RampGetStatement_StatementDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\"),\n credits: RampGetStatement_MonetaryAmountSchema.nullable().optional(),\n end_date: z.string().describe(\"End date of the statement period (ISO 8601 format).\").nullable().optional(),\n payments: RampGetStatement_MonetaryAmountSchema.nullable(),\n start_date: z.string().describe(\"Start date of the statement period (ISO 8601 format).\").nullable().optional(),\n statement_url: z.string().describe(\"URL to download the statement PDF.\").nullable().optional(),\n ending_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n opening_balance: RampGetStatement_MonetaryAmountSchema.nullable(),\n statement_lines: z.array(RampGetStatement_StatementLineSchema).describe(\"List of statement line items.\").nullable().optional(),\n}).passthrough().describe(\"Detailed statement data returned by the API.\");\nconst RampGetStatement_FileDownloadDataSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the statement.\"),\n download_url: z.string().describe(\"URL to download the statement file.\").nullable().optional(),\n}).passthrough().describe(\"Data returned when requesting a statement in PDF or CSV format.\");\nexport const RampGetStatementOutput: z.ZodTypeAny = z.object({\n response_data: z.union([RampGetStatement_StatementDataSchema, RampGetStatement_FileDownloadDataSchema]),\n});\n\nexport const rampGetStatement = action(\"RAMP_GET_STATEMENT\", {\n slug: \"ramp-get-statement\",\n name: \"Get Statement\",\n description: \"Tool for retrieving statement details or downloading statements. Supports JSON, PDF, and CSV formats for financial reporting.\",\n input: RampGetStatementInput,\n output: RampGetStatementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAsC,EAAE,OAAO;CAC1D,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AACrE,CAAC;AACD,MAAM,wCAAsD,EAAE,OAAO;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CAC5E,eAAe,EA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AS,qCAAqC;CAC7D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAK3F,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATkD,EAAE,OAAO,EAC3D,eAAe,EAAE,MAAM,CAAC,sCAAsC,uCAAuC,CAAC,EACxG,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-transaction.ts
|
|
4
|
+
const RampGetTransactionInput = zod.z.object({ transaction_id: zod.z.string().describe("ID of the transaction to retrieve") });
|
|
5
|
+
const RampGetTransaction_CardHolderSchema = zod.z.object({
|
|
6
|
+
user_id: zod.z.string().describe("User identifier").nullable().optional(),
|
|
7
|
+
last_name: zod.z.string().describe("Last name of the cardholder").nullable().optional(),
|
|
8
|
+
first_name: zod.z.string().describe("First name of the cardholder").nullable().optional(),
|
|
9
|
+
employee_id: zod.z.string().describe("Employee identifier").nullable().optional(),
|
|
10
|
+
location_id: zod.z.string().describe("Location identifier").nullable().optional(),
|
|
11
|
+
department_id: zod.z.string().describe("Department identifier").nullable().optional(),
|
|
12
|
+
location_name: zod.z.string().describe("Location name").nullable().optional(),
|
|
13
|
+
department_name: zod.z.string().describe("Department name").nullable().optional()
|
|
14
|
+
}).passthrough().describe("Card holder information");
|
|
15
|
+
const RampGetTransaction_PolicyViolationSchema = zod.z.object({
|
|
16
|
+
memo: zod.z.string().describe("Policy violation memo").nullable().optional(),
|
|
17
|
+
type: zod.z.string().describe("Type of policy violation").nullable().optional(),
|
|
18
|
+
created_at: zod.z.string().describe("When the violation was created").nullable().optional()
|
|
19
|
+
}).passthrough().describe("Policy violation information");
|
|
20
|
+
const RampGetTransactionOutput = zod.z.object({
|
|
21
|
+
id: zod.z.string().describe("Unique identifier for the transaction"),
|
|
22
|
+
memo: zod.z.string().describe("Memo or note associated with the transaction").nullable().optional(),
|
|
23
|
+
state: zod.z.string().describe("Current state or status of the transaction"),
|
|
24
|
+
amount: zod.z.number().describe("Transaction amount"),
|
|
25
|
+
card_id: zod.z.string().describe("Identifier of the card used for the transaction").nullable().optional(),
|
|
26
|
+
trip_id: zod.z.string().describe("Trip ID if associated with a trip").nullable().optional(),
|
|
27
|
+
disputes: zod.z.array(zod.z.object({})).describe("List of disputes").nullable().optional(),
|
|
28
|
+
limit_id: zod.z.string().describe("Limit ID associated with the transaction").nullable().optional(),
|
|
29
|
+
receipts: zod.z.array(zod.z.string()).describe("List of receipt IDs").nullable().optional(),
|
|
30
|
+
entity_id: zod.z.string().describe("Business entity ID").nullable().optional(),
|
|
31
|
+
trip_name: zod.z.string().describe("Trip name if associated with a trip").nullable().optional(),
|
|
32
|
+
card_holder: RampGetTransaction_CardHolderSchema.nullable().optional(),
|
|
33
|
+
merchant_id: zod.z.string().describe("Unique identifier for the merchant").nullable().optional(),
|
|
34
|
+
sync_status: zod.z.string().describe("Sync status of the transaction").nullable().optional(),
|
|
35
|
+
card_present: zod.z.boolean().describe("Whether the card was physically present").nullable().optional(),
|
|
36
|
+
statement_id: zod.z.string().describe("Statement ID for the transaction").nullable().optional(),
|
|
37
|
+
currency_code: zod.z.string().describe("Currency code for the transaction").nullable().optional(),
|
|
38
|
+
merchant_name: zod.z.string().describe("Name of the merchant where the transaction occurred").nullable().optional(),
|
|
39
|
+
sk_category_id: zod.z.number().int().describe("Ramp category ID").nullable().optional(),
|
|
40
|
+
accounting_date: zod.z.string().describe("Date for accounting purposes").nullable().optional(),
|
|
41
|
+
settlement_date: zod.z.string().describe("Date when the transaction was settled").nullable().optional(),
|
|
42
|
+
sk_category_name: zod.z.string().describe("Ramp category name").nullable().optional(),
|
|
43
|
+
policy_violations: zod.z.array(RampGetTransaction_PolicyViolationSchema).describe("List of policy violations").nullable().optional(),
|
|
44
|
+
merchant_descriptor: zod.z.string().describe("Merchant descriptor").nullable().optional(),
|
|
45
|
+
user_transaction_time: zod.z.string().describe("Timestamp when the transaction occurred").nullable().optional()
|
|
46
|
+
}).passthrough().describe("Response containing transaction details");
|
|
47
|
+
const rampGetTransaction = require_action.action("RAMP_GET_TRANSACTION", {
|
|
48
|
+
slug: "ramp-get-transaction",
|
|
49
|
+
name: "Get Transaction Details",
|
|
50
|
+
description: "Tool for retrieving complete details of a specific transaction. Includes merchant details, receipts, accounting codes, and dispute information.",
|
|
51
|
+
input: RampGetTransactionInput,
|
|
52
|
+
output: RampGetTransactionOutput
|
|
53
|
+
});
|
|
54
|
+
//#endregion
|
|
55
|
+
exports.rampGetTransaction = rampGetTransaction;
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=get-transaction.cjs.map
|