@keystrokehq/ramp 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-department.cjs +1 -0
- package/dist/actions/create-department.cjs.map +1 -1
- package/dist/actions/create-department.d.cts +3 -3
- package/dist/actions/create-department.d.cts.map +1 -1
- package/dist/actions/create-department.d.mts +3 -3
- package/dist/actions/create-department.d.mts.map +1 -1
- package/dist/actions/create-department.mjs +1 -0
- package/dist/actions/create-department.mjs.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.cjs +1 -0
- package/dist/actions/create-inventory-item-accounting-field.cjs.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.d.cts +3 -4
- package/dist/actions/create-inventory-item-accounting-field.d.cts.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.d.mts +3 -4
- package/dist/actions/create-inventory-item-accounting-field.d.mts.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.mjs +1 -0
- package/dist/actions/create-inventory-item-accounting-field.mjs.map +1 -1
- package/dist/actions/create-memo.cjs +1 -0
- package/dist/actions/create-memo.cjs.map +1 -1
- package/dist/actions/create-memo.d.cts +3 -5
- package/dist/actions/create-memo.d.cts.map +1 -1
- package/dist/actions/create-memo.d.mts +3 -5
- package/dist/actions/create-memo.d.mts.map +1 -1
- package/dist/actions/create-memo.mjs +1 -0
- package/dist/actions/create-memo.mjs.map +1 -1
- package/dist/actions/create-mileage-reimbursement.cjs +1 -0
- package/dist/actions/create-mileage-reimbursement.cjs.map +1 -1
- package/dist/actions/create-mileage-reimbursement.d.cts +3 -10
- package/dist/actions/create-mileage-reimbursement.d.cts.map +1 -1
- package/dist/actions/create-mileage-reimbursement.d.mts +3 -10
- package/dist/actions/create-mileage-reimbursement.d.mts.map +1 -1
- package/dist/actions/create-mileage-reimbursement.mjs +1 -0
- package/dist/actions/create-mileage-reimbursement.mjs.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.cjs +1 -0
- package/dist/actions/create-new-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.d.cts +3 -7
- package/dist/actions/create-new-custom-accounting-field.d.cts.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.d.mts +3 -7
- package/dist/actions/create-new-custom-accounting-field.d.mts.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.mjs +1 -0
- package/dist/actions/create-new-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.cjs +1 -0
- package/dist/actions/create-tax-code-accounting-field.cjs.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.d.cts +3 -4
- package/dist/actions/create-tax-code-accounting-field.d.cts.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.d.mts +3 -4
- package/dist/actions/create-tax-code-accounting-field.d.mts.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.mjs +1 -0
- package/dist/actions/create-tax-code-accounting-field.mjs.map +1 -1
- package/dist/actions/create-user-invite.cjs +1 -0
- package/dist/actions/create-user-invite.cjs.map +1 -1
- package/dist/actions/create-user-invite.d.cts +3 -11
- package/dist/actions/create-user-invite.d.cts.map +1 -1
- package/dist/actions/create-user-invite.d.mts +3 -11
- package/dist/actions/create-user-invite.d.mts.map +1 -1
- package/dist/actions/create-user-invite.mjs +1 -0
- package/dist/actions/create-user-invite.mjs.map +1 -1
- package/dist/actions/create-webhook-subscription.cjs +1 -0
- package/dist/actions/create-webhook-subscription.cjs.map +1 -1
- package/dist/actions/create-webhook-subscription.d.cts +3 -5
- package/dist/actions/create-webhook-subscription.d.cts.map +1 -1
- package/dist/actions/create-webhook-subscription.d.mts +3 -5
- package/dist/actions/create-webhook-subscription.d.mts.map +1 -1
- package/dist/actions/create-webhook-subscription.mjs +1 -0
- package/dist/actions/create-webhook-subscription.mjs.map +1 -1
- package/dist/actions/deactivate-user.cjs +1 -0
- package/dist/actions/deactivate-user.cjs.map +1 -1
- package/dist/actions/deactivate-user.d.cts +3 -3
- package/dist/actions/deactivate-user.d.cts.map +1 -1
- package/dist/actions/deactivate-user.d.mts +3 -3
- package/dist/actions/deactivate-user.d.mts.map +1 -1
- package/dist/actions/deactivate-user.mjs +1 -0
- package/dist/actions/deactivate-user.mjs.map +1 -1
- package/dist/actions/delete-accounting-account.cjs +1 -0
- package/dist/actions/delete-accounting-account.cjs.map +1 -1
- package/dist/actions/delete-accounting-account.d.cts +3 -3
- package/dist/actions/delete-accounting-account.d.cts.map +1 -1
- package/dist/actions/delete-accounting-account.d.mts +3 -3
- package/dist/actions/delete-accounting-account.d.mts.map +1 -1
- package/dist/actions/delete-accounting-account.mjs +1 -0
- package/dist/actions/delete-accounting-account.mjs.map +1 -1
- package/dist/actions/delete-accounting-connection.cjs +1 -0
- package/dist/actions/delete-accounting-connection.cjs.map +1 -1
- package/dist/actions/delete-accounting-connection.d.cts +3 -1
- package/dist/actions/delete-accounting-connection.d.cts.map +1 -1
- package/dist/actions/delete-accounting-connection.d.mts +3 -1
- package/dist/actions/delete-accounting-connection.d.mts.map +1 -1
- package/dist/actions/delete-accounting-connection.mjs +1 -0
- package/dist/actions/delete-accounting-connection.mjs.map +1 -1
- package/dist/actions/delete-accounting-fields.cjs +1 -0
- package/dist/actions/delete-accounting-fields.cjs.map +1 -1
- package/dist/actions/delete-accounting-fields.d.cts +3 -3
- package/dist/actions/delete-accounting-fields.d.cts.map +1 -1
- package/dist/actions/delete-accounting-fields.d.mts +3 -3
- package/dist/actions/delete-accounting-fields.d.mts.map +1 -1
- package/dist/actions/delete-accounting-fields.mjs +1 -0
- package/dist/actions/delete-accounting-fields.mjs.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.cjs +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.d.cts +3 -3
- package/dist/actions/delete-accounting-inventory-item-options.d.cts.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.d.mts +3 -3
- package/dist/actions/delete-accounting-inventory-item-options.d.mts.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.mjs +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.cjs +1 -0
- package/dist/actions/delete-accounting-tax-code-options.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.d.cts +3 -3
- package/dist/actions/delete-accounting-tax-code-options.d.cts.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.d.mts +3 -3
- package/dist/actions/delete-accounting-tax-code-options.d.mts.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.mjs +1 -0
- package/dist/actions/delete-accounting-tax-code-options.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code.cjs +1 -0
- package/dist/actions/delete-accounting-tax-code.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code.d.cts +3 -1
- package/dist/actions/delete-accounting-tax-code.d.cts.map +1 -1
- package/dist/actions/delete-accounting-tax-code.d.mts +3 -1
- package/dist/actions/delete-accounting-tax-code.d.mts.map +1 -1
- package/dist/actions/delete-accounting-tax-code.mjs +1 -0
- package/dist/actions/delete-accounting-tax-code.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.cjs +1 -0
- package/dist/actions/delete-accounting-tax-rates.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.d.cts +3 -4
- package/dist/actions/delete-accounting-tax-rates.d.cts.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.d.mts +3 -4
- package/dist/actions/delete-accounting-tax-rates.d.mts.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.mjs +1 -0
- package/dist/actions/delete-accounting-tax-rates.mjs.map +1 -1
- package/dist/actions/delete-accounting-vendors.cjs +1 -0
- package/dist/actions/delete-accounting-vendors.cjs.map +1 -1
- package/dist/actions/delete-accounting-vendors.d.cts +3 -3
- package/dist/actions/delete-accounting-vendors.d.cts.map +1 -1
- package/dist/actions/delete-accounting-vendors.d.mts +3 -3
- package/dist/actions/delete-accounting-vendors.d.mts.map +1 -1
- package/dist/actions/delete-accounting-vendors.mjs +1 -0
- package/dist/actions/delete-accounting-vendors.mjs.map +1 -1
- package/dist/actions/delete-custom-field-option.cjs +1 -0
- package/dist/actions/delete-custom-field-option.cjs.map +1 -1
- package/dist/actions/delete-custom-field-option.d.cts +3 -3
- package/dist/actions/delete-custom-field-option.d.cts.map +1 -1
- package/dist/actions/delete-custom-field-option.d.mts +3 -3
- package/dist/actions/delete-custom-field-option.d.mts.map +1 -1
- package/dist/actions/delete-custom-field-option.mjs +1 -0
- package/dist/actions/delete-custom-field-option.mjs.map +1 -1
- package/dist/actions/delete-inventory-item-field.cjs +1 -0
- package/dist/actions/delete-inventory-item-field.cjs.map +1 -1
- package/dist/actions/delete-inventory-item-field.d.cts +3 -1
- package/dist/actions/delete-inventory-item-field.d.cts.map +1 -1
- package/dist/actions/delete-inventory-item-field.d.mts +3 -1
- package/dist/actions/delete-inventory-item-field.d.mts.map +1 -1
- package/dist/actions/delete-inventory-item-field.mjs +1 -0
- package/dist/actions/delete-inventory-item-field.mjs.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.cjs +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.cjs.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.d.cts +3 -4
- package/dist/actions/delete-spend-allocation-delete-users.d.cts.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.d.mts +3 -4
- package/dist/actions/delete-spend-allocation-delete-users.d.mts.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.mjs +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -0
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +3 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +3 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs +1 -0
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/fetch-accounting-account.cjs +1 -0
- package/dist/actions/fetch-accounting-account.cjs.map +1 -1
- package/dist/actions/fetch-accounting-account.d.cts +3 -4
- package/dist/actions/fetch-accounting-account.d.cts.map +1 -1
- package/dist/actions/fetch-accounting-account.d.mts +3 -4
- package/dist/actions/fetch-accounting-account.d.mts.map +1 -1
- package/dist/actions/fetch-accounting-account.mjs +1 -0
- package/dist/actions/fetch-accounting-account.mjs.map +1 -1
- package/dist/actions/fetch-accounting-vendor.cjs +1 -0
- package/dist/actions/fetch-accounting-vendor.cjs.map +1 -1
- package/dist/actions/fetch-accounting-vendor.d.cts +3 -4
- package/dist/actions/fetch-accounting-vendor.d.cts.map +1 -1
- package/dist/actions/fetch-accounting-vendor.d.mts +3 -4
- package/dist/actions/fetch-accounting-vendor.d.mts.map +1 -1
- package/dist/actions/fetch-accounting-vendor.mjs +1 -0
- package/dist/actions/fetch-accounting-vendor.mjs.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.cjs +1 -0
- package/dist/actions/fetch-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.d.cts +3 -3
- package/dist/actions/fetch-custom-accounting-field.d.cts.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.d.mts +3 -3
- package/dist/actions/fetch-custom-accounting-field.d.mts.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.mjs +1 -0
- package/dist/actions/fetch-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/get-accounting-accounts.cjs +1 -0
- package/dist/actions/get-accounting-accounts.cjs.map +1 -1
- package/dist/actions/get-accounting-accounts.d.cts +3 -8
- package/dist/actions/get-accounting-accounts.d.cts.map +1 -1
- package/dist/actions/get-accounting-accounts.d.mts +3 -8
- package/dist/actions/get-accounting-accounts.d.mts.map +1 -1
- package/dist/actions/get-accounting-accounts.mjs +1 -0
- package/dist/actions/get-accounting-accounts.mjs.map +1 -1
- package/dist/actions/get-accounting-all-connections.cjs +1 -0
- package/dist/actions/get-accounting-all-connections.cjs.map +1 -1
- package/dist/actions/get-accounting-all-connections.d.cts +3 -1
- package/dist/actions/get-accounting-all-connections.d.cts.map +1 -1
- package/dist/actions/get-accounting-all-connections.d.mts +3 -1
- package/dist/actions/get-accounting-all-connections.d.mts.map +1 -1
- package/dist/actions/get-accounting-all-connections.mjs +1 -0
- package/dist/actions/get-accounting-all-connections.mjs.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.cjs +1 -0
- package/dist/actions/get-accounting-connection-by-id.cjs.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.d.cts +3 -3
- package/dist/actions/get-accounting-connection-by-id.d.cts.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.d.mts +3 -3
- package/dist/actions/get-accounting-connection-by-id.d.mts.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.mjs +1 -0
- package/dist/actions/get-accounting-connection-by-id.mjs.map +1 -1
- package/dist/actions/get-accounting-connection.cjs +1 -0
- package/dist/actions/get-accounting-connection.cjs.map +1 -1
- package/dist/actions/get-accounting-connection.d.cts +3 -1
- package/dist/actions/get-accounting-connection.d.cts.map +1 -1
- package/dist/actions/get-accounting-connection.d.mts +3 -1
- package/dist/actions/get-accounting-connection.d.mts.map +1 -1
- package/dist/actions/get-accounting-connection.mjs +1 -0
- package/dist/actions/get-accounting-connection.mjs.map +1 -1
- package/dist/actions/get-accounting-fields.cjs +1 -0
- package/dist/actions/get-accounting-fields.cjs.map +1 -1
- package/dist/actions/get-accounting-fields.d.cts +3 -4
- package/dist/actions/get-accounting-fields.d.cts.map +1 -1
- package/dist/actions/get-accounting-fields.d.mts +3 -4
- package/dist/actions/get-accounting-fields.d.mts.map +1 -1
- package/dist/actions/get-accounting-fields.mjs +1 -0
- package/dist/actions/get-accounting-fields.mjs.map +1 -1
- package/dist/actions/get-accounting-vendors.cjs +1 -0
- package/dist/actions/get-accounting-vendors.cjs.map +1 -1
- package/dist/actions/get-accounting-vendors.d.cts +3 -4
- package/dist/actions/get-accounting-vendors.d.cts.map +1 -1
- package/dist/actions/get-accounting-vendors.d.mts +3 -4
- package/dist/actions/get-accounting-vendors.d.mts.map +1 -1
- package/dist/actions/get-accounting-vendors.mjs +1 -0
- package/dist/actions/get-accounting-vendors.mjs.map +1 -1
- package/dist/actions/get-all-transactions.cjs +1 -0
- package/dist/actions/get-all-transactions.cjs.map +1 -1
- package/dist/actions/get-all-transactions.d.cts +3 -33
- package/dist/actions/get-all-transactions.d.cts.map +1 -1
- package/dist/actions/get-all-transactions.d.mts +3 -33
- package/dist/actions/get-all-transactions.d.mts.map +1 -1
- package/dist/actions/get-all-transactions.mjs +1 -0
- package/dist/actions/get-all-transactions.mjs.map +1 -1
- package/dist/actions/get-card-vault-resource.cjs +1 -0
- package/dist/actions/get-card-vault-resource.cjs.map +1 -1
- package/dist/actions/get-card-vault-resource.d.cts +3 -3
- package/dist/actions/get-card-vault-resource.d.cts.map +1 -1
- package/dist/actions/get-card-vault-resource.d.mts +3 -3
- package/dist/actions/get-card-vault-resource.d.mts.map +1 -1
- package/dist/actions/get-card-vault-resource.mjs +1 -0
- package/dist/actions/get-card-vault-resource.mjs.map +1 -1
- package/dist/actions/get-card.cjs +1 -0
- package/dist/actions/get-card.cjs.map +1 -1
- package/dist/actions/get-card.d.cts +3 -3
- package/dist/actions/get-card.d.cts.map +1 -1
- package/dist/actions/get-card.d.mts +3 -3
- package/dist/actions/get-card.d.mts.map +1 -1
- package/dist/actions/get-card.mjs +1 -0
- package/dist/actions/get-card.mjs.map +1 -1
- package/dist/actions/get-custom-field-option.cjs +1 -0
- package/dist/actions/get-custom-field-option.cjs.map +1 -1
- package/dist/actions/get-custom-field-option.d.cts +3 -3
- package/dist/actions/get-custom-field-option.d.cts.map +1 -1
- package/dist/actions/get-custom-field-option.d.mts +3 -3
- package/dist/actions/get-custom-field-option.d.mts.map +1 -1
- package/dist/actions/get-custom-field-option.mjs +1 -0
- package/dist/actions/get-custom-field-option.mjs.map +1 -1
- package/dist/actions/get-department.cjs +1 -0
- package/dist/actions/get-department.cjs.map +1 -1
- package/dist/actions/get-department.d.cts +3 -3
- package/dist/actions/get-department.d.cts.map +1 -1
- package/dist/actions/get-department.d.mts +3 -3
- package/dist/actions/get-department.d.mts.map +1 -1
- package/dist/actions/get-department.mjs +1 -0
- package/dist/actions/get-department.mjs.map +1 -1
- package/dist/actions/get-inventory-item-field.cjs +1 -0
- package/dist/actions/get-inventory-item-field.cjs.map +1 -1
- package/dist/actions/get-inventory-item-field.d.cts +3 -1
- package/dist/actions/get-inventory-item-field.d.cts.map +1 -1
- package/dist/actions/get-inventory-item-field.d.mts +3 -1
- package/dist/actions/get-inventory-item-field.d.mts.map +1 -1
- package/dist/actions/get-inventory-item-field.mjs +1 -0
- package/dist/actions/get-inventory-item-field.mjs.map +1 -1
- package/dist/actions/get-memo.cjs +1 -0
- package/dist/actions/get-memo.cjs.map +1 -1
- package/dist/actions/get-memo.d.cts +3 -3
- package/dist/actions/get-memo.d.cts.map +1 -1
- package/dist/actions/get-memo.d.mts +3 -3
- package/dist/actions/get-memo.d.mts.map +1 -1
- package/dist/actions/get-memo.mjs +1 -0
- package/dist/actions/get-memo.mjs.map +1 -1
- package/dist/actions/get-reimbursement.cjs +1 -0
- package/dist/actions/get-reimbursement.cjs.map +1 -1
- package/dist/actions/get-reimbursement.d.cts +3 -3
- package/dist/actions/get-reimbursement.d.cts.map +1 -1
- package/dist/actions/get-reimbursement.d.mts +3 -3
- package/dist/actions/get-reimbursement.d.mts.map +1 -1
- package/dist/actions/get-reimbursement.mjs +1 -0
- package/dist/actions/get-reimbursement.mjs.map +1 -1
- package/dist/actions/get-spend-limit.cjs +1 -0
- package/dist/actions/get-spend-limit.cjs.map +1 -1
- package/dist/actions/get-spend-limit.d.cts +3 -3
- package/dist/actions/get-spend-limit.d.cts.map +1 -1
- package/dist/actions/get-spend-limit.d.mts +3 -3
- package/dist/actions/get-spend-limit.d.mts.map +1 -1
- package/dist/actions/get-spend-limit.mjs +1 -0
- package/dist/actions/get-spend-limit.mjs.map +1 -1
- package/dist/actions/get-statement.cjs +1 -0
- package/dist/actions/get-statement.cjs.map +1 -1
- package/dist/actions/get-statement.d.cts +3 -4
- package/dist/actions/get-statement.d.cts.map +1 -1
- package/dist/actions/get-statement.d.mts +3 -4
- package/dist/actions/get-statement.d.mts.map +1 -1
- package/dist/actions/get-statement.mjs +1 -0
- package/dist/actions/get-statement.mjs.map +1 -1
- package/dist/actions/get-transaction.cjs +1 -0
- package/dist/actions/get-transaction.cjs.map +1 -1
- package/dist/actions/get-transaction.d.cts +3 -3
- package/dist/actions/get-transaction.d.cts.map +1 -1
- package/dist/actions/get-transaction.d.mts +3 -3
- package/dist/actions/get-transaction.d.mts.map +1 -1
- package/dist/actions/get-transaction.mjs +1 -0
- package/dist/actions/get-transaction.mjs.map +1 -1
- package/dist/actions/get-user.cjs +1 -0
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +3 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +3 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +1 -0
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-deferred-status.cjs +1 -0
- package/dist/actions/get-users-deferred-status.cjs.map +1 -1
- package/dist/actions/get-users-deferred-status.d.cts +3 -3
- package/dist/actions/get-users-deferred-status.d.cts.map +1 -1
- package/dist/actions/get-users-deferred-status.d.mts +3 -3
- package/dist/actions/get-users-deferred-status.d.mts.map +1 -1
- package/dist/actions/get-users-deferred-status.mjs +1 -0
- package/dist/actions/get-users-deferred-status.mjs.map +1 -1
- package/dist/actions/get-vendor.cjs +1 -0
- package/dist/actions/get-vendor.cjs.map +1 -1
- package/dist/actions/get-vendor.d.cts +3 -3
- package/dist/actions/get-vendor.d.cts.map +1 -1
- package/dist/actions/get-vendor.d.mts +3 -3
- package/dist/actions/get-vendor.d.mts.map +1 -1
- package/dist/actions/get-vendor.mjs +1 -0
- package/dist/actions/get-vendor.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +1 -0
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +3 -3
- package/dist/actions/get-webhook.d.cts.map +1 -1
- package/dist/actions/get-webhook.d.mts +3 -3
- package/dist/actions/get-webhook.d.mts.map +1 -1
- package/dist/actions/get-webhook.mjs +1 -0
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/issue-virtual-card.cjs +1 -0
- package/dist/actions/issue-virtual-card.cjs.map +1 -1
- package/dist/actions/issue-virtual-card.d.cts +3 -14
- package/dist/actions/issue-virtual-card.d.cts.map +1 -1
- package/dist/actions/issue-virtual-card.d.mts +3 -14
- package/dist/actions/issue-virtual-card.d.mts.map +1 -1
- package/dist/actions/issue-virtual-card.mjs +1 -0
- package/dist/actions/issue-virtual-card.mjs.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.cjs +1 -0
- package/dist/actions/list-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.d.cts +3 -8
- package/dist/actions/list-accounting-inventory-item-options.d.cts.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.d.mts +3 -8
- package/dist/actions/list-accounting-inventory-item-options.d.mts.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.mjs +1 -0
- package/dist/actions/list-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/list-accounting-tax-rates.cjs +1 -0
- package/dist/actions/list-accounting-tax-rates.cjs.map +1 -1
- package/dist/actions/list-accounting-tax-rates.d.cts +3 -4
- package/dist/actions/list-accounting-tax-rates.d.cts.map +1 -1
- package/dist/actions/list-accounting-tax-rates.d.mts +3 -4
- package/dist/actions/list-accounting-tax-rates.d.mts.map +1 -1
- package/dist/actions/list-accounting-tax-rates.mjs +1 -0
- package/dist/actions/list-accounting-tax-rates.mjs.map +1 -1
- package/dist/actions/list-cards.cjs +1 -0
- package/dist/actions/list-cards.cjs.map +1 -1
- package/dist/actions/list-cards.d.cts +3 -10
- package/dist/actions/list-cards.d.cts.map +1 -1
- package/dist/actions/list-cards.d.mts +3 -10
- package/dist/actions/list-cards.d.mts.map +1 -1
- package/dist/actions/list-cards.mjs +1 -0
- package/dist/actions/list-cards.mjs.map +1 -1
- package/dist/actions/list-departments.cjs +1 -0
- package/dist/actions/list-departments.cjs.map +1 -1
- package/dist/actions/list-departments.d.cts +3 -4
- package/dist/actions/list-departments.d.cts.map +1 -1
- package/dist/actions/list-departments.d.mts +3 -4
- package/dist/actions/list-departments.d.mts.map +1 -1
- package/dist/actions/list-departments.mjs +1 -0
- package/dist/actions/list-departments.mjs.map +1 -1
- package/dist/actions/list-memos.cjs +1 -0
- package/dist/actions/list-memos.cjs.map +1 -1
- package/dist/actions/list-memos.d.cts +3 -12
- package/dist/actions/list-memos.d.cts.map +1 -1
- package/dist/actions/list-memos.d.mts +3 -12
- package/dist/actions/list-memos.d.mts.map +1 -1
- package/dist/actions/list-memos.mjs +1 -0
- package/dist/actions/list-memos.mjs.map +1 -1
- package/dist/actions/list-reimbursements.cjs +1 -0
- package/dist/actions/list-reimbursements.cjs.map +1 -1
- package/dist/actions/list-reimbursements.d.cts +3 -21
- package/dist/actions/list-reimbursements.d.cts.map +1 -1
- package/dist/actions/list-reimbursements.d.mts +3 -21
- package/dist/actions/list-reimbursements.d.mts.map +1 -1
- package/dist/actions/list-reimbursements.mjs +1 -0
- package/dist/actions/list-reimbursements.mjs.map +1 -1
- package/dist/actions/list-statements.cjs +1 -0
- package/dist/actions/list-statements.cjs.map +1 -1
- package/dist/actions/list-statements.d.cts +3 -6
- package/dist/actions/list-statements.d.cts.map +1 -1
- package/dist/actions/list-statements.d.mts +3 -6
- package/dist/actions/list-statements.d.mts.map +1 -1
- package/dist/actions/list-statements.mjs +1 -0
- package/dist/actions/list-statements.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +3 -10
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +3 -10
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-vendors-accounts.cjs +1 -0
- package/dist/actions/list-vendors-accounts.cjs.map +1 -1
- package/dist/actions/list-vendors-accounts.d.cts +3 -5
- package/dist/actions/list-vendors-accounts.d.cts.map +1 -1
- package/dist/actions/list-vendors-accounts.d.mts +3 -5
- package/dist/actions/list-vendors-accounts.d.mts.map +1 -1
- package/dist/actions/list-vendors-accounts.mjs +1 -0
- package/dist/actions/list-vendors-accounts.mjs.map +1 -1
- package/dist/actions/list-vendors-contacts.cjs +1 -0
- package/dist/actions/list-vendors-contacts.cjs.map +1 -1
- package/dist/actions/list-vendors-contacts.d.cts +3 -5
- package/dist/actions/list-vendors-contacts.d.cts.map +1 -1
- package/dist/actions/list-vendors-contacts.d.mts +3 -5
- package/dist/actions/list-vendors-contacts.d.mts.map +1 -1
- package/dist/actions/list-vendors-contacts.mjs +1 -0
- package/dist/actions/list-vendors-contacts.mjs.map +1 -1
- package/dist/actions/list-vendors-credits.cjs +1 -0
- package/dist/actions/list-vendors-credits.cjs.map +1 -1
- package/dist/actions/list-vendors-credits.d.cts +3 -7
- package/dist/actions/list-vendors-credits.d.cts.map +1 -1
- package/dist/actions/list-vendors-credits.d.mts +3 -7
- package/dist/actions/list-vendors-credits.d.mts.map +1 -1
- package/dist/actions/list-vendors-credits.mjs +1 -0
- package/dist/actions/list-vendors-credits.mjs.map +1 -1
- package/dist/actions/list-vendors.cjs +1 -0
- package/dist/actions/list-vendors.cjs.map +1 -1
- package/dist/actions/list-vendors.d.cts +3 -9
- package/dist/actions/list-vendors.d.cts.map +1 -1
- package/dist/actions/list-vendors.d.mts +3 -9
- package/dist/actions/list-vendors.d.mts.map +1 -1
- package/dist/actions/list-vendors.mjs +1 -0
- package/dist/actions/list-vendors.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +1 -0
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +3 -1
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +3 -1
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +1 -0
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.cjs +1 -0
- package/dist/actions/options-for-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.d.cts +3 -3
- package/dist/actions/options-for-custom-accounting-field.d.cts.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.d.mts +3 -3
- package/dist/actions/options-for-custom-accounting-field.d.mts.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.mjs +1 -0
- package/dist/actions/options-for-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/patch-accounting-connection.cjs +1 -0
- package/dist/actions/patch-accounting-connection.cjs.map +1 -1
- package/dist/actions/patch-accounting-connection.d.cts +3 -7
- package/dist/actions/patch-accounting-connection.d.cts.map +1 -1
- package/dist/actions/patch-accounting-connection.d.mts +3 -7
- package/dist/actions/patch-accounting-connection.d.mts.map +1 -1
- package/dist/actions/patch-accounting-connection.mjs +1 -0
- package/dist/actions/patch-accounting-connection.mjs.map +1 -1
- package/dist/actions/patch-card-resource.cjs +1 -0
- package/dist/actions/patch-card-resource.cjs.map +1 -1
- package/dist/actions/patch-card-resource.d.cts +3 -21
- package/dist/actions/patch-card-resource.d.cts.map +1 -1
- package/dist/actions/patch-card-resource.d.mts +3 -21
- package/dist/actions/patch-card-resource.d.mts.map +1 -1
- package/dist/actions/patch-card-resource.mjs +1 -0
- package/dist/actions/patch-card-resource.mjs.map +1 -1
- package/dist/actions/patch-custom-field-option.cjs +1 -0
- package/dist/actions/patch-custom-field-option.cjs.map +1 -1
- package/dist/actions/patch-custom-field-option.d.cts +3 -8
- package/dist/actions/patch-custom-field-option.d.cts.map +1 -1
- package/dist/actions/patch-custom-field-option.d.mts +3 -8
- package/dist/actions/patch-custom-field-option.d.mts.map +1 -1
- package/dist/actions/patch-custom-field-option.mjs +1 -0
- package/dist/actions/patch-custom-field-option.mjs.map +1 -1
- package/dist/actions/patch-gl-account-resource.cjs +1 -0
- package/dist/actions/patch-gl-account-resource.cjs.map +1 -1
- package/dist/actions/patch-gl-account-resource.d.cts +3 -6
- package/dist/actions/patch-gl-account-resource.d.cts.map +1 -1
- package/dist/actions/patch-gl-account-resource.d.mts +3 -6
- package/dist/actions/patch-gl-account-resource.d.mts.map +1 -1
- package/dist/actions/patch-gl-account-resource.mjs +1 -0
- package/dist/actions/patch-gl-account-resource.mjs.map +1 -1
- package/dist/actions/patch-inventory-item-field.cjs +1 -0
- package/dist/actions/patch-inventory-item-field.cjs.map +1 -1
- package/dist/actions/patch-inventory-item-field.d.cts +3 -4
- package/dist/actions/patch-inventory-item-field.d.cts.map +1 -1
- package/dist/actions/patch-inventory-item-field.d.mts +3 -4
- package/dist/actions/patch-inventory-item-field.d.mts.map +1 -1
- package/dist/actions/patch-inventory-item-field.mjs +1 -0
- package/dist/actions/patch-inventory-item-field.mjs.map +1 -1
- package/dist/actions/post-accounting-accounts.cjs +1 -0
- package/dist/actions/post-accounting-accounts.cjs.map +1 -1
- package/dist/actions/post-accounting-accounts.d.cts +3 -9
- package/dist/actions/post-accounting-accounts.d.cts.map +1 -1
- package/dist/actions/post-accounting-accounts.d.mts +3 -9
- package/dist/actions/post-accounting-accounts.d.mts.map +1 -1
- package/dist/actions/post-accounting-accounts.mjs +1 -0
- package/dist/actions/post-accounting-accounts.mjs.map +1 -1
- package/dist/actions/post-accounting-connection.cjs +1 -0
- package/dist/actions/post-accounting-connection.cjs.map +1 -1
- package/dist/actions/post-accounting-connection.d.cts +3 -7
- package/dist/actions/post-accounting-connection.d.cts.map +1 -1
- package/dist/actions/post-accounting-connection.d.mts +3 -7
- package/dist/actions/post-accounting-connection.d.mts.map +1 -1
- package/dist/actions/post-accounting-connection.mjs +1 -0
- package/dist/actions/post-accounting-connection.mjs.map +1 -1
- package/dist/actions/post-accounting-vendors.cjs +1 -0
- package/dist/actions/post-accounting-vendors.cjs.map +1 -1
- package/dist/actions/post-accounting-vendors.d.cts +3 -7
- package/dist/actions/post-accounting-vendors.d.cts.map +1 -1
- package/dist/actions/post-accounting-vendors.d.mts +3 -7
- package/dist/actions/post-accounting-vendors.d.mts.map +1 -1
- package/dist/actions/post-accounting-vendors.mjs +1 -0
- package/dist/actions/post-accounting-vendors.mjs.map +1 -1
- package/dist/actions/post-inventory-item-options.cjs +1 -0
- package/dist/actions/post-inventory-item-options.cjs.map +1 -1
- package/dist/actions/post-inventory-item-options.d.cts +3 -7
- package/dist/actions/post-inventory-item-options.d.cts.map +1 -1
- package/dist/actions/post-inventory-item-options.d.mts +3 -7
- package/dist/actions/post-inventory-item-options.d.mts.map +1 -1
- package/dist/actions/post-inventory-item-options.mjs +1 -0
- package/dist/actions/post-inventory-item-options.mjs.map +1 -1
- package/dist/actions/post-physical-card.cjs +1 -0
- package/dist/actions/post-physical-card.cjs.map +1 -1
- package/dist/actions/post-physical-card.d.cts +3 -41
- package/dist/actions/post-physical-card.d.cts.map +1 -1
- package/dist/actions/post-physical-card.d.mts +3 -41
- package/dist/actions/post-physical-card.d.mts.map +1 -1
- package/dist/actions/post-physical-card.mjs +1 -0
- package/dist/actions/post-physical-card.mjs.map +1 -1
- package/dist/actions/reactivate-accounting-connection.cjs +1 -0
- package/dist/actions/reactivate-accounting-connection.cjs.map +1 -1
- package/dist/actions/reactivate-accounting-connection.d.cts +3 -3
- package/dist/actions/reactivate-accounting-connection.d.cts.map +1 -1
- package/dist/actions/reactivate-accounting-connection.d.mts +3 -3
- package/dist/actions/reactivate-accounting-connection.d.mts.map +1 -1
- package/dist/actions/reactivate-accounting-connection.mjs +1 -0
- package/dist/actions/reactivate-accounting-connection.mjs.map +1 -1
- package/dist/actions/reactivate-user.cjs +1 -0
- package/dist/actions/reactivate-user.cjs.map +1 -1
- package/dist/actions/reactivate-user.d.cts +3 -3
- package/dist/actions/reactivate-user.d.cts.map +1 -1
- package/dist/actions/reactivate-user.d.mts +3 -3
- package/dist/actions/reactivate-user.d.mts.map +1 -1
- package/dist/actions/reactivate-user.mjs +1 -0
- package/dist/actions/reactivate-user.mjs.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.cjs +1 -0
- package/dist/actions/submit-reimbursement-receipt.cjs.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.d.cts +3 -10
- package/dist/actions/submit-reimbursement-receipt.d.cts.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.d.mts +3 -10
- package/dist/actions/submit-reimbursement-receipt.d.mts.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.mjs +1 -0
- package/dist/actions/submit-reimbursement-receipt.mjs.map +1 -1
- package/dist/actions/suspend-card.cjs +1 -0
- package/dist/actions/suspend-card.cjs.map +1 -1
- package/dist/actions/suspend-card.d.cts +3 -4
- package/dist/actions/suspend-card.d.cts.map +1 -1
- package/dist/actions/suspend-card.d.mts +3 -4
- package/dist/actions/suspend-card.d.mts.map +1 -1
- package/dist/actions/suspend-card.mjs +1 -0
- package/dist/actions/suspend-card.mjs.map +1 -1
- package/dist/actions/terminate-card.cjs +1 -0
- package/dist/actions/terminate-card.cjs.map +1 -1
- package/dist/actions/terminate-card.d.cts +3 -4
- package/dist/actions/terminate-card.d.cts.map +1 -1
- package/dist/actions/terminate-card.d.mts +3 -4
- package/dist/actions/terminate-card.d.mts.map +1 -1
- package/dist/actions/terminate-card.mjs +1 -0
- package/dist/actions/terminate-card.mjs.map +1 -1
- package/dist/actions/update-accounting-field.cjs +1 -0
- package/dist/actions/update-accounting-field.cjs.map +1 -1
- package/dist/actions/update-accounting-field.d.cts +3 -6
- package/dist/actions/update-accounting-field.d.cts.map +1 -1
- package/dist/actions/update-accounting-field.d.mts +3 -6
- package/dist/actions/update-accounting-field.d.mts.map +1 -1
- package/dist/actions/update-accounting-field.mjs +1 -0
- package/dist/actions/update-accounting-field.mjs.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.cjs +1 -0
- package/dist/actions/update-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.d.cts +3 -4
- package/dist/actions/update-accounting-inventory-item-options.d.cts.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.d.mts +3 -4
- package/dist/actions/update-accounting-inventory-item-options.d.mts.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.mjs +1 -0
- package/dist/actions/update-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.cjs +1 -0
- package/dist/actions/update-accounting-tax-code-options.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.d.cts +3 -5
- package/dist/actions/update-accounting-tax-code-options.d.cts.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.d.mts +3 -5
- package/dist/actions/update-accounting-tax-code-options.d.mts.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.mjs +1 -0
- package/dist/actions/update-accounting-tax-code-options.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-code.cjs +1 -0
- package/dist/actions/update-accounting-tax-code.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-code.d.cts +3 -4
- package/dist/actions/update-accounting-tax-code.d.cts.map +1 -1
- package/dist/actions/update-accounting-tax-code.d.mts +3 -4
- package/dist/actions/update-accounting-tax-code.d.mts.map +1 -1
- package/dist/actions/update-accounting-tax-code.mjs +1 -0
- package/dist/actions/update-accounting-tax-code.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-rate.cjs +1 -0
- package/dist/actions/update-accounting-tax-rate.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-rate.d.cts +3 -6
- package/dist/actions/update-accounting-tax-rate.d.cts.map +1 -1
- package/dist/actions/update-accounting-tax-rate.d.mts +3 -6
- package/dist/actions/update-accounting-tax-rate.d.mts.map +1 -1
- package/dist/actions/update-accounting-tax-rate.mjs +1 -0
- package/dist/actions/update-accounting-tax-rate.mjs.map +1 -1
- package/dist/actions/update-accounting-vendor.cjs +1 -0
- package/dist/actions/update-accounting-vendor.cjs.map +1 -1
- package/dist/actions/update-accounting-vendor.d.cts +3 -6
- package/dist/actions/update-accounting-vendor.d.cts.map +1 -1
- package/dist/actions/update-accounting-vendor.d.mts +3 -6
- package/dist/actions/update-accounting-vendor.d.mts.map +1 -1
- package/dist/actions/update-accounting-vendor.mjs +1 -0
- package/dist/actions/update-accounting-vendor.mjs.map +1 -1
- package/dist/actions/update-card-limit.cjs +1 -0
- package/dist/actions/update-card-limit.cjs.map +1 -1
- package/dist/actions/update-card-limit.d.cts +3 -5
- package/dist/actions/update-card-limit.d.cts.map +1 -1
- package/dist/actions/update-card-limit.d.mts +3 -5
- package/dist/actions/update-card-limit.d.mts.map +1 -1
- package/dist/actions/update-card-limit.mjs +1 -0
- package/dist/actions/update-card-limit.mjs.map +1 -1
- package/dist/actions/update-department.cjs +1 -0
- package/dist/actions/update-department.cjs.map +1 -1
- package/dist/actions/update-department.d.cts +3 -6
- package/dist/actions/update-department.d.cts.map +1 -1
- package/dist/actions/update-department.d.mts +3 -6
- package/dist/actions/update-department.d.mts.map +1 -1
- package/dist/actions/update-department.mjs +1 -0
- package/dist/actions/update-department.mjs.map +1 -1
- package/dist/actions/update-limits.cjs +1 -0
- package/dist/actions/update-limits.cjs.map +1 -1
- package/dist/actions/update-limits.d.cts +3 -28
- package/dist/actions/update-limits.d.cts.map +1 -1
- package/dist/actions/update-limits.d.mts +3 -28
- package/dist/actions/update-limits.d.mts.map +1 -1
- package/dist/actions/update-limits.mjs +1 -0
- package/dist/actions/update-limits.mjs.map +1 -1
- package/dist/actions/update-user.cjs +1 -0
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +3 -12
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +3 -12
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +1 -0
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/actions/upload-new-options.cjs +1 -0
- package/dist/actions/upload-new-options.cjs.map +1 -1
- package/dist/actions/upload-new-options.d.cts +3 -9
- package/dist/actions/upload-new-options.d.cts.map +1 -1
- package/dist/actions/upload-new-options.d.mts +3 -9
- package/dist/actions/upload-new-options.d.mts.map +1 -1
- package/dist/actions/upload-new-options.mjs +1 -0
- package/dist/actions/upload-new-options.mjs.map +1 -1
- package/dist/actions/upload-tax-code-options.cjs +1 -0
- package/dist/actions/upload-tax-code-options.cjs.map +1 -1
- package/dist/actions/upload-tax-code-options.d.cts +3 -8
- package/dist/actions/upload-tax-code-options.d.cts.map +1 -1
- package/dist/actions/upload-tax-code-options.d.mts +3 -8
- package/dist/actions/upload-tax-code-options.d.mts.map +1 -1
- package/dist/actions/upload-tax-code-options.mjs +1 -0
- package/dist/actions/upload-tax-code-options.mjs.map +1 -1
- package/dist/actions/upload-tax-rates.cjs +1 -0
- package/dist/actions/upload-tax-rates.cjs.map +1 -1
- package/dist/actions/upload-tax-rates.d.cts +3 -9
- package/dist/actions/upload-tax-rates.d.cts.map +1 -1
- package/dist/actions/upload-tax-rates.d.mts +3 -9
- package/dist/actions/upload-tax-rates.d.mts.map +1 -1
- package/dist/actions/upload-tax-rates.mjs +1 -0
- package/dist/actions/upload-tax-rates.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["ramp","executeRampTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { ramp } from \"./app\";\nimport { executeRampTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["ramp","executeRampTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { ramp } from \"./app\";\nimport { executeRampTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof ramp.credential> {\n return ramp.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRampTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOoD;CACpD,OAAOA,YAAAA,KAAK,OAAO;EACjB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,gBAAgB,MAAM,KAAgC,CAAC;EACvF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { ramp } from \"./app\";\nimport { executeRampTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { ramp } from \"./app\";\nimport { executeRampTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof ramp.credential> {\n return ramp.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRampTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOoD;CACpD,OAAO,KAAK,OAAO;EACjB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,gBAAgB,MAAM,KAAgC,CAAC;EACvF;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-department.cjs","names":["z","action"],"sources":["../../src/actions/create-department.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampCreateDepartmentInput = z.object({\n name: z.string().describe(\"Name of the department\"),\n});\nexport const RampCreateDepartmentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the department in UUID format.\").nullable(),\n name: z.string().describe(\"Name of the department.\").nullable(),\n}).passthrough();\n\nexport const rampCreateDepartment = action(\"RAMP_CREATE_DEPARTMENT\", {\n slug: \"ramp-create-department\",\n name: \"Create Department\",\n description: \"Tool for creating a new department in your Ramp organization. Perfect for setting up organizational structure and expense categorization.\",\n input: RampCreateDepartmentInput,\n output: RampCreateDepartmentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-department.cjs","names":["z","action"],"sources":["../../src/actions/create-department.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ramp } from \"../app\";\n\nexport const RampCreateDepartmentInput = z.object({\n name: z.string().describe(\"Name of the department\"),\n});\nexport const RampCreateDepartmentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the department in UUID format.\").nullable(),\n name: z.string().describe(\"Name of the department.\").nullable(),\n}).passthrough();\n\nexport const rampCreateDepartment: AppAction<\n typeof RampCreateDepartmentInput,\n typeof RampCreateDepartmentOutput,\n typeof ramp.credential\n> = action(\"RAMP_CREATE_DEPARTMENT\", {\n slug: \"ramp-create-department\",\n name: \"Create Department\",\n description: \"Tool for creating a new department in your Ramp organization. Perfect for setting up organizational structure and expense categorization.\",\n input: RampCreateDepartmentInput,\n output: RampCreateDepartmentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EACpD,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;AAChE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ramp } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-department.d.ts
|
|
@@ -8,9 +10,7 @@ declare const RampCreateDepartmentOutput: z.ZodObject<{
|
|
|
8
10
|
id: z.ZodNullable<z.ZodString>;
|
|
9
11
|
name: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const rampCreateDepartment:
|
|
12
|
-
name: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const rampCreateDepartment: AppAction<typeof RampCreateDepartmentInput, typeof RampCreateDepartmentOutput, typeof ramp.credential>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { rampCreateDepartment };
|
|
16
16
|
//# sourceMappingURL=create-department.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-department.d.cts","names":[],"sources":["../../src/actions/create-department.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-department.d.cts","names":[],"sources":["../../src/actions/create-department.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ramp } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-department.d.ts
|
|
@@ -8,9 +10,7 @@ declare const RampCreateDepartmentOutput: z.ZodObject<{
|
|
|
8
10
|
id: z.ZodNullable<z.ZodString>;
|
|
9
11
|
name: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const rampCreateDepartment:
|
|
12
|
-
name: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const rampCreateDepartment: AppAction<typeof RampCreateDepartmentInput, typeof RampCreateDepartmentOutput, typeof ramp.credential>;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { rampCreateDepartment };
|
|
16
16
|
//# sourceMappingURL=create-department.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-department.d.mts","names":[],"sources":["../../src/actions/create-department.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-department.d.mts","names":[],"sources":["../../src/actions/create-department.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-department.mjs","names":[],"sources":["../../src/actions/create-department.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampCreateDepartmentInput = z.object({\n name: z.string().describe(\"Name of the department\"),\n});\nexport const RampCreateDepartmentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the department in UUID format.\").nullable(),\n name: z.string().describe(\"Name of the department.\").nullable(),\n}).passthrough();\n\nexport const rampCreateDepartment = action(\"RAMP_CREATE_DEPARTMENT\", {\n slug: \"ramp-create-department\",\n name: \"Create Department\",\n description: \"Tool for creating a new department in your Ramp organization. Perfect for setting up organizational structure and expense categorization.\",\n input: RampCreateDepartmentInput,\n output: RampCreateDepartmentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-department.mjs","names":[],"sources":["../../src/actions/create-department.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ramp } from \"../app\";\n\nexport const RampCreateDepartmentInput = z.object({\n name: z.string().describe(\"Name of the department\"),\n});\nexport const RampCreateDepartmentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the department in UUID format.\").nullable(),\n name: z.string().describe(\"Name of the department.\").nullable(),\n}).passthrough();\n\nexport const rampCreateDepartment: AppAction<\n typeof RampCreateDepartmentInput,\n typeof RampCreateDepartmentOutput,\n typeof ramp.credential\n> = action(\"RAMP_CREATE_DEPARTMENT\", {\n slug: \"ramp-create-department\",\n name: \"Create Department\",\n description: \"Tool for creating a new department in your Ramp organization. Perfect for setting up organizational structure and expense categorization.\",\n input: RampCreateDepartmentInput,\n output: RampCreateDepartmentOutput,\n});\n"],"mappings":";;;AAcA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBuC,EAAE,OAAO,EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,EACpD,CAcS;CACP,QAdwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAChE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-inventory-item-accounting-field.cjs","names":["z","action"],"sources":["../../src/actions/create-inventory-item-accounting-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampCreateInventoryItemAccountingFieldInput = z.object({\n name: z.string().describe(\"Name of the inventory item tracking category in the remote ERP system\"),\n display_name: z.string().describe(\"The name of the inventory item tracking category as shown on Ramp. If not provided, defaults to the name field\").optional(),\n}).describe(\"Request to create a new inventory item accounting field.\");\nexport const RampCreateInventoryItemAccountingFieldOutput = z.object({\n id: z.string().describe(\"Remote/external ID of inventory item field from ERP system\").nullable(),\n name: z.string().describe(\"Name of the inventory item field in the remote ERP system\").nullable(),\n ramp_id: z.string().describe(\"Unique identifier for the inventory item field within Ramp system (UUID format)\").nullable(),\n display_name: z.string().describe(\"Display name of the inventory item field on Ramp\").nullable().optional(),\n accounting_connection_id: z.string().describe(\"ID of the accounting connection that the inventory item field is associated with (UUID format)\").nullable(),\n}).passthrough().describe(\"Response from creating a new inventory item accounting field.\");\n\nexport const rampCreateInventoryItemAccountingField = action(\"RAMP_CREATE_INVENTORY_ITEM_ACCOUNTING_FIELD\", {\n slug: \"ramp-create-inventory-item-accounting-field\",\n name: \"Create Inventory Item Accounting Field\",\n description: \"Tool to create a new inventory item accounting field for tracking inventory categories. Use when setting up inventory tracking for an accounting connection. Note: There can only be one active inventory item accounting field per accounting connection.\",\n input: RampCreateInventoryItemAccountingFieldInput,\n output: RampCreateInventoryItemAccountingFieldOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-inventory-item-accounting-field.cjs","names":["z","action"],"sources":["../../src/actions/create-inventory-item-accounting-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ramp } from \"../app\";\n\nexport const RampCreateInventoryItemAccountingFieldInput = z.object({\n name: z.string().describe(\"Name of the inventory item tracking category in the remote ERP system\"),\n display_name: z.string().describe(\"The name of the inventory item tracking category as shown on Ramp. If not provided, defaults to the name field\").optional(),\n}).describe(\"Request to create a new inventory item accounting field.\");\nexport const RampCreateInventoryItemAccountingFieldOutput = z.object({\n id: z.string().describe(\"Remote/external ID of inventory item field from ERP system\").nullable(),\n name: z.string().describe(\"Name of the inventory item field in the remote ERP system\").nullable(),\n ramp_id: z.string().describe(\"Unique identifier for the inventory item field within Ramp system (UUID format)\").nullable(),\n display_name: z.string().describe(\"Display name of the inventory item field on Ramp\").nullable().optional(),\n accounting_connection_id: z.string().describe(\"ID of the accounting connection that the inventory item field is associated with (UUID format)\").nullable(),\n}).passthrough().describe(\"Response from creating a new inventory item accounting field.\");\n\nexport const rampCreateInventoryItemAccountingField: AppAction<\n typeof RampCreateInventoryItemAccountingFieldInput,\n typeof RampCreateInventoryItemAccountingFieldOutput,\n typeof ramp.credential\n> = action(\"RAMP_CREATE_INVENTORY_ITEM_ACCOUNTING_FIELD\", {\n slug: \"ramp-create-inventory-item-accounting-field\",\n name: \"Create Inventory Item Accounting Field\",\n description: \"Tool to create a new inventory item accounting field for tracking inventory categories. Use when setting up inventory tracking for an accounting connection. Note: There can only be one active inventory item accounting field per accounting connection.\",\n input: RampCreateInventoryItemAccountingFieldInput,\n output: RampCreateInventoryItemAccountingFieldOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;AAC/J,CAAC,CAAC,CAAC,SAAS,0DAA0D;AACtE,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC/F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAChG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACzH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,yCAITC,eAAAA,OAAO,+CAA+C;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ramp } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-inventory-item-accounting-field.d.ts
|
|
@@ -12,10 +14,7 @@ declare const RampCreateInventoryItemAccountingFieldOutput: z.ZodObject<{
|
|
|
12
14
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
accounting_connection_id: z.ZodNullable<z.ZodString>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const rampCreateInventoryItemAccountingField:
|
|
16
|
-
name: string;
|
|
17
|
-
display_name?: string | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const rampCreateInventoryItemAccountingField: AppAction<typeof RampCreateInventoryItemAccountingFieldInput, typeof RampCreateInventoryItemAccountingFieldOutput, typeof ramp.credential>;
|
|
19
18
|
//#endregion
|
|
20
19
|
export { rampCreateInventoryItemAccountingField };
|
|
21
20
|
//# sourceMappingURL=create-inventory-item-accounting-field.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-inventory-item-accounting-field.d.cts","names":[],"sources":["../../src/actions/create-inventory-item-accounting-field.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-inventory-item-accounting-field.d.cts","names":[],"sources":["../../src/actions/create-inventory-item-accounting-field.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;cAI3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;cAQ5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ramp } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-inventory-item-accounting-field.d.ts
|
|
@@ -12,10 +14,7 @@ declare const RampCreateInventoryItemAccountingFieldOutput: z.ZodObject<{
|
|
|
12
14
|
display_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
15
|
accounting_connection_id: z.ZodNullable<z.ZodString>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const rampCreateInventoryItemAccountingField:
|
|
16
|
-
name: string;
|
|
17
|
-
display_name?: string | undefined;
|
|
18
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const rampCreateInventoryItemAccountingField: AppAction<typeof RampCreateInventoryItemAccountingFieldInput, typeof RampCreateInventoryItemAccountingFieldOutput, typeof ramp.credential>;
|
|
19
18
|
//#endregion
|
|
20
19
|
export { rampCreateInventoryItemAccountingField };
|
|
21
20
|
//# sourceMappingURL=create-inventory-item-accounting-field.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-inventory-item-accounting-field.d.mts","names":[],"sources":["../../src/actions/create-inventory-item-accounting-field.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-inventory-item-accounting-field.d.mts","names":[],"sources":["../../src/actions/create-inventory-item-accounting-field.ts"],"mappings":";;;;;cAMa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;cAI3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;cAQ5C,sCAAA,EAAwC,SAAA,QAC5C,2CAAA,SACA,4CAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-inventory-item-accounting-field.mjs","names":[],"sources":["../../src/actions/create-inventory-item-accounting-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampCreateInventoryItemAccountingFieldInput = z.object({\n name: z.string().describe(\"Name of the inventory item tracking category in the remote ERP system\"),\n display_name: z.string().describe(\"The name of the inventory item tracking category as shown on Ramp. If not provided, defaults to the name field\").optional(),\n}).describe(\"Request to create a new inventory item accounting field.\");\nexport const RampCreateInventoryItemAccountingFieldOutput = z.object({\n id: z.string().describe(\"Remote/external ID of inventory item field from ERP system\").nullable(),\n name: z.string().describe(\"Name of the inventory item field in the remote ERP system\").nullable(),\n ramp_id: z.string().describe(\"Unique identifier for the inventory item field within Ramp system (UUID format)\").nullable(),\n display_name: z.string().describe(\"Display name of the inventory item field on Ramp\").nullable().optional(),\n accounting_connection_id: z.string().describe(\"ID of the accounting connection that the inventory item field is associated with (UUID format)\").nullable(),\n}).passthrough().describe(\"Response from creating a new inventory item accounting field.\");\n\nexport const rampCreateInventoryItemAccountingField = action(\"RAMP_CREATE_INVENTORY_ITEM_ACCOUNTING_FIELD\", {\n slug: \"ramp-create-inventory-item-accounting-field\",\n name: \"Create Inventory Item Accounting Field\",\n description: \"Tool to create a new inventory item accounting field for tracking inventory categories. Use when setting up inventory tracking for an accounting connection. Note: There can only be one active inventory item accounting field per accounting connection.\",\n input: RampCreateInventoryItemAccountingFieldInput,\n output: RampCreateInventoryItemAccountingFieldOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-inventory-item-accounting-field.mjs","names":[],"sources":["../../src/actions/create-inventory-item-accounting-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ramp } from \"../app\";\n\nexport const RampCreateInventoryItemAccountingFieldInput = z.object({\n name: z.string().describe(\"Name of the inventory item tracking category in the remote ERP system\"),\n display_name: z.string().describe(\"The name of the inventory item tracking category as shown on Ramp. If not provided, defaults to the name field\").optional(),\n}).describe(\"Request to create a new inventory item accounting field.\");\nexport const RampCreateInventoryItemAccountingFieldOutput = z.object({\n id: z.string().describe(\"Remote/external ID of inventory item field from ERP system\").nullable(),\n name: z.string().describe(\"Name of the inventory item field in the remote ERP system\").nullable(),\n ramp_id: z.string().describe(\"Unique identifier for the inventory item field within Ramp system (UUID format)\").nullable(),\n display_name: z.string().describe(\"Display name of the inventory item field on Ramp\").nullable().optional(),\n accounting_connection_id: z.string().describe(\"ID of the accounting connection that the inventory item field is associated with (UUID format)\").nullable(),\n}).passthrough().describe(\"Response from creating a new inventory item accounting field.\");\n\nexport const rampCreateInventoryItemAccountingField: AppAction<\n typeof RampCreateInventoryItemAccountingFieldInput,\n typeof RampCreateInventoryItemAccountingFieldOutput,\n typeof ramp.credential\n> = action(\"RAMP_CREATE_INVENTORY_ITEM_ACCOUNTING_FIELD\", {\n slug: \"ramp-create-inventory-item-accounting-field\",\n name: \"Create Inventory Item Accounting Field\",\n description: \"Tool to create a new inventory item accounting field for tracking inventory categories. Use when setting up inventory tracking for an accounting connection. Note: There can only be one active inventory item accounting field per accounting connection.\",\n input: RampCreateInventoryItemAccountingFieldInput,\n output: RampCreateInventoryItemAccountingFieldOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,yCAIT,OAAO,+CAA+C;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApByD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CAC/J,CAAC,CAAC,CAAC,SAAS,0DAiBH;CACP,QAjB0D,EAAE,OAAO;EACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EAChG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACzH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC3J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-memo.cjs","names":["z","action"],"sources":["../../src/actions/create-memo.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampCreateMemoInput = z.object({\n memo: z.string().describe(\"Text content of the memo to create. Maximum length is 255 characters.\"),\n transaction_id: z.string().describe(\"Unique identifier for the transaction to attach the memo to\"),\n is_memo_recurring: z.boolean().default(false).describe(\"Whether this memo should automatically apply to similar future transactions. Defaults to false.\").optional(),\n});\nexport const RampCreateMemoOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transaction associated with this memo\").nullable(),\n memo: z.string().describe(\"Text content of the memo\").nullable(),\n}).passthrough().describe(\"Response containing the created memo details\");\n\nexport const rampCreateMemo = action(\"RAMP_CREATE_MEMO\", {\n slug: \"ramp-create-memo\",\n name: \"Create Transaction Memo\",\n description: \"Tool for uploading a new memo for a transaction in Ramp. Use when you need to add notes or context to existing transactions.\",\n input: RampCreateMemoInput,\n output: RampCreateMemoOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-memo.cjs","names":["z","action"],"sources":["../../src/actions/create-memo.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ramp } from \"../app\";\n\nexport const RampCreateMemoInput = z.object({\n memo: z.string().describe(\"Text content of the memo to create. Maximum length is 255 characters.\"),\n transaction_id: z.string().describe(\"Unique identifier for the transaction to attach the memo to\"),\n is_memo_recurring: z.boolean().default(false).describe(\"Whether this memo should automatically apply to similar future transactions. Defaults to false.\").optional(),\n});\nexport const RampCreateMemoOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transaction associated with this memo\").nullable(),\n memo: z.string().describe(\"Text content of the memo\").nullable(),\n}).passthrough().describe(\"Response containing the created memo details\");\n\nexport const rampCreateMemo: AppAction<\n typeof RampCreateMemoInput,\n typeof RampCreateMemoOutput,\n typeof ramp.credential\n> = action(\"RAMP_CREATE_MEMO\", {\n slug: \"ramp-create-memo\",\n name: \"Create Transaction Memo\",\n description: \"Tool for uploading a new memo for a transaction in Ramp. Use when you need to add notes or context to existing transactions.\",\n input: RampCreateMemoInput,\n output: RampCreateMemoOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACjG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACjG,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;AACrK,CAAC;AACD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;AACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,iBAITC,eAAAA,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ramp } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-memo.d.ts
|
|
@@ -10,11 +12,7 @@ declare const RampCreateMemoOutput: z.ZodObject<{
|
|
|
10
12
|
id: z.ZodNullable<z.ZodString>;
|
|
11
13
|
memo: z.ZodNullable<z.ZodString>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const rampCreateMemo:
|
|
14
|
-
memo: string;
|
|
15
|
-
transaction_id: string;
|
|
16
|
-
is_memo_recurring?: boolean | undefined;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const rampCreateMemo: AppAction<typeof RampCreateMemoInput, typeof RampCreateMemoOutput, typeof ramp.credential>;
|
|
18
16
|
//#endregion
|
|
19
17
|
export { rampCreateMemo };
|
|
20
18
|
//# sourceMappingURL=create-memo.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-memo.d.cts","names":[],"sources":["../../src/actions/create-memo.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-memo.d.cts","names":[],"sources":["../../src/actions/create-memo.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAKnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAKpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ramp } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-memo.d.ts
|
|
@@ -10,11 +12,7 @@ declare const RampCreateMemoOutput: z.ZodObject<{
|
|
|
10
12
|
id: z.ZodNullable<z.ZodString>;
|
|
11
13
|
memo: z.ZodNullable<z.ZodString>;
|
|
12
14
|
}, z.core.$loose>;
|
|
13
|
-
declare const rampCreateMemo:
|
|
14
|
-
memo: string;
|
|
15
|
-
transaction_id: string;
|
|
16
|
-
is_memo_recurring?: boolean | undefined;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
15
|
+
declare const rampCreateMemo: AppAction<typeof RampCreateMemoInput, typeof RampCreateMemoOutput, typeof ramp.credential>;
|
|
18
16
|
//#endregion
|
|
19
17
|
export { rampCreateMemo };
|
|
20
18
|
//# sourceMappingURL=create-memo.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-memo.d.mts","names":[],"sources":["../../src/actions/create-memo.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-memo.d.mts","names":[],"sources":["../../src/actions/create-memo.ts"],"mappings":";;;;;cAMa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;cAKnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAKpB,cAAA,EAAgB,SAAA,QACpB,mBAAA,SACA,oBAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-memo.mjs","names":[],"sources":["../../src/actions/create-memo.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampCreateMemoInput = z.object({\n memo: z.string().describe(\"Text content of the memo to create. Maximum length is 255 characters.\"),\n transaction_id: z.string().describe(\"Unique identifier for the transaction to attach the memo to\"),\n is_memo_recurring: z.boolean().default(false).describe(\"Whether this memo should automatically apply to similar future transactions. Defaults to false.\").optional(),\n});\nexport const RampCreateMemoOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transaction associated with this memo\").nullable(),\n memo: z.string().describe(\"Text content of the memo\").nullable(),\n}).passthrough().describe(\"Response containing the created memo details\");\n\nexport const rampCreateMemo = action(\"RAMP_CREATE_MEMO\", {\n slug: \"ramp-create-memo\",\n name: \"Create Transaction Memo\",\n description: \"Tool for uploading a new memo for a transaction in Ramp. Use when you need to add notes or context to existing transactions.\",\n input: RampCreateMemoInput,\n output: RampCreateMemoOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-memo.mjs","names":[],"sources":["../../src/actions/create-memo.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ramp } from \"../app\";\n\nexport const RampCreateMemoInput = z.object({\n memo: z.string().describe(\"Text content of the memo to create. Maximum length is 255 characters.\"),\n transaction_id: z.string().describe(\"Unique identifier for the transaction to attach the memo to\"),\n is_memo_recurring: z.boolean().default(false).describe(\"Whether this memo should automatically apply to similar future transactions. Defaults to false.\").optional(),\n});\nexport const RampCreateMemoOutput = z.object({\n id: z.string().describe(\"Unique identifier for the transaction associated with this memo\").nullable(),\n memo: z.string().describe(\"Text content of the memo\").nullable(),\n}).passthrough().describe(\"Response containing the created memo details\");\n\nexport const rampCreateMemo: AppAction<\n typeof RampCreateMemoInput,\n typeof RampCreateMemoOutput,\n typeof ramp.credential\n> = action(\"RAMP_CREATE_MEMO\", {\n slug: \"ramp-create-memo\",\n name: \"Create Transaction Memo\",\n description: \"Tool for uploading a new memo for a transaction in Ramp. Use when you need to add notes or context to existing transactions.\",\n input: RampCreateMemoInput,\n output: RampCreateMemoOutput,\n});\n"],"mappings":";;;AAgBA,MAAa,iBAIT,OAAO,oBAAoB;CAC7B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBiC,EAAE,OAAO;EAC1C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EACjG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACjG,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CACrK,CAcS;CACP,QAdkC,EAAE,OAAO;EAC3C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;EACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mileage-reimbursement.cjs","names":["z","action"],"sources":["../../src/actions/create-mileage-reimbursement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampCreateMileageReimbursementInput = z.object({\n memo: z.string().describe(\"Memo or note describing the purpose of the mileage reimbursement. This field is required.\"),\n distance: z.union([z.string(), z.number()]),\n trip_date: z.string().describe(\"Date of the trip in ISO 8601 date format (YYYY-MM-DD).\"),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip.\").optional(),\n end_location: z.string().describe(\"Ending location of the trip.\").optional(),\n reimbursee_id: z.string().describe(\"Unique identifier (UUID) of the user to be reimbursed.\"),\n distance_units: z.enum([\"KILOMETERS\", \"MILES\"]).describe(\"Distance units for mileage reimbursement.\").optional(),\n start_location: z.string().describe(\"Starting location of the trip.\").optional(),\n});\nconst RampCreateMileageReimbursement_ReimbursementTypeSchema = z.enum([\"MILEAGE\", \"OUT_OF_POCKET\", \"PAYBACK_FULL\", \"PAYBACK_PARTIAL\", \"PER_DIEM\"]).describe(\"Type of the reimbursement.\");\nconst RampCreateMileageReimbursement_ReimbursementStateSchema = z.enum([\"APPROVED\", \"AWAITING_EXPORT\", \"AWAITING_PAYMENT\", \"AWAITING_PUSH_PAYMENT\", \"CANCELED\", \"DELETED\", \"DRAFT\", \"EXPORTED\", \"EXPORT_FAILED\", \"EXPORT_INITIATED\", \"EXPORT_MARKED_AS_FAILED\", \"EXPORT_SUCCESSFUL\", \"FAILED_REIMBURSEMENT\", \"INIT\", \"MANUALLY_REIMBURSED\", \"MISSING_ACH\", \"PENDING\", \"PROCESSING\", \"PUSH_PAYMENT_FAILED\", \"PUSH_PAYMENT_INITIATED\", \"REIMBURSED\", \"REIMBURSED_VIA_PUSH\", \"REJECTED\"]).describe(\"Current state of the reimbursement.\");\nconst RampCreateMileageReimbursement_AttendeeSchema = z.object({\n name: z.string().describe(\"Name of the attendee\").nullable(),\n user_id: z.string().describe(\"User ID of the attendee if they are a Ramp user\").nullable().optional(),\n}).passthrough().describe(\"Attendee information for a reimbursement.\");\nconst RampCreateMileageReimbursement_ReimbursementDirectionSchema = z.enum([\"BUSINESS_TO_USER\", \"USER_TO_BUSINESS\"]).describe(\"Direction of the reimbursement.\");\nconst RampCreateMileageReimbursement_LineItemAmountSchema = z.object({\n amount: z.number().int().describe(\"Numeric value of the line item amount in minor currency units\").nullable(),\n currency_code: z.string().describe(\"Currency code for the line item\").nullable(),\n}).passthrough().describe(\"Amount object for a line item.\");\nconst RampCreateMileageReimbursement_CategoryInfoSchema = 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}).passthrough().describe(\"Category information for an accounting field.\");\nconst RampCreateMileageReimbursement_AccountingFieldSelectionSchema = 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 source: z.record(z.string(), z.unknown()).describe(\"Source information for the accounting field selection\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampCreateMileageReimbursement_CategoryInfoSchema.nullable().optional(),\n external_code: z.string().describe(\"External code for the accounting field selection\").nullable().optional(),\n provider_name: z.string().describe(\"Provider name for the accounting field selection\").nullable().optional(),\n}).passthrough().describe(\"Accounting field selection with category information.\");\nconst RampCreateMileageReimbursement_LineItemSchema = z.object({\n memo: z.string().describe(\"Memo for this line item\").nullable().optional(),\n amount: RampCreateMileageReimbursement_LineItemAmountSchema.nullable(),\n accounting_field_selections: z.array(RampCreateMileageReimbursement_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\"),\n}).passthrough().describe(\"Individual line item within a reimbursement.\");\nconst RampCreateMileageReimbursement_SyncStatusSchema = z.enum([\"NOT_SYNC_READY\", \"SYNCED\", \"SYNC_READY\"]).describe(\"Current sync status of the reimbursement.\");\nconst RampCreateMileageReimbursement_MoneyAmountSchema = z.object({\n amount: z.number().int().describe(\"Numeric value of the amount in minor currency units (e.g., cents)\").nullable(),\n currency_code: z.string().describe(\"Currency code (e.g., USD, EUR)\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate for minor units\").nullable().optional(),\n}).passthrough().describe(\"Amount object with currency information.\");\nconst RampCreateMileageReimbursement_ExpenseGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense group\").nullable(),\n name: z.string().describe(\"Name of the expense group\").nullable(),\n}).passthrough().describe(\"Expense group information.\");\nexport const RampCreateMileageReimbursementOutput = z.object({\n id: z.string().describe(\"Unique identifier of the reimbursement\").nullable(),\n memo: z.string().describe(\"Reimbursement memo\").nullable().optional(),\n type: RampCreateMileageReimbursement_ReimbursementTypeSchema.nullable(),\n state: RampCreateMileageReimbursement_ReimbursementStateSchema.nullable(),\n amount: z.number().describe(\"The amount that the payor pays.\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID associated with the reimbursement if a Trip ID is available.\").nullable().optional(),\n user_id: z.string().describe(\"Unique identifier of the person who made the reimbursement.\").nullable(),\n currency: z.string().describe(\"The currency that the payor pays with.\").nullable(),\n distance: z.number().describe(\"The distance of the reimbursement in miles, for mileage reimbursements.\").nullable().optional(),\n merchant: z.string().describe(\"The name of the merchant that the reimbursement is associated with.\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt IDs associated with the reimbursement.\").nullable().optional(),\n attendees: z.array(RampCreateMileageReimbursement_AttendeeSchema).describe(\"List of attendees for the reimbursement.\").nullable().optional(),\n direction: RampCreateMileageReimbursement_ReimbursementDirectionSchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated business entity.\").nullable().optional(),\n synced_at: z.string().describe(\"Time when reimbursement has been synced. Will be None if the reimbursement is not synced.\").nullable().optional(),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip, for mileage reimbursements.\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the reimbursement is created. Presented in ISO8601 format.\").nullable(),\n line_items: z.array(RampCreateMileageReimbursement_LineItemSchema).describe(\"List of line items related to the reimbursement.\").nullable().optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment batch that the reimbursement is associated with, once paid.\").nullable().optional(),\n updated_at: z.string().describe(\"Time at which the reimbursement was last updated. Presented in ISO8601 format.\").nullable().optional(),\n user_email: z.string().describe(\"Email of the person who made the reimbursement.\").nullable(),\n approved_at: z.string().describe(\"Time at which the reimbursement is approved. Presented in ISO8601 format.\").nullable().optional(),\n employee_id: z.string().describe(\"Employee ID of the person who made the reimbursement.\").nullable().optional(),\n merchant_id: z.string().describe(\"The unique identifier of the merchant. Note that this field may be empty when merchant is populated if Ramp does not recognize the merchant.\").nullable().optional(),\n sync_status: RampCreateMileageReimbursement_SyncStatusSchema.nullable().optional(),\n end_location: z.string().describe(\"Ending location of the trip, for mileage reimbursements.\").nullable().optional(),\n payee_amount: RampCreateMileageReimbursement_MoneyAmountSchema.nullable().optional(),\n submitted_at: z.string().describe(\"Time when reimbursement was most recently submitted\").nullable().optional(),\n expense_group: RampCreateMileageReimbursement_ExpenseGroupSchema.nullable().optional(),\n spend_limit_id: z.string().describe(\"Spend limit to which the reimbursement is attributed, if it exists.\").nullable().optional(),\n start_location: z.string().describe(\"Starting location of the trip, for mileage reimbursements.\").nullable().optional(),\n user_full_name: z.string().describe(\"Full name of the person who made the reimbursement.\").nullable(),\n accounting_date: z.string().describe(\"The date for the reimbursement for accounting purposes. If not specified, falls back to the transaction date.\").nullable().optional(),\n payment_batch_id: z.string().describe(\"The unique identifier of the reimbursement payment batch that the reimbursement is associated with.\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the transaction in ISO 8601 date format.\").nullable().optional(),\n payment_processed_at: z.string().describe(\"Time of reimbursement payment. Presented in ISO8601 format.\").nullable().optional(),\n accounting_field_selections: z.array(RampCreateMileageReimbursement_AccountingFieldSelectionSchema).describe(\"List of accounting fields selected to code the reimbursement.\").nullable().optional(),\n original_reimbursement_amount: RampCreateMileageReimbursement_MoneyAmountSchema.nullable().optional(),\n}).passthrough().describe(\"Complete mileage reimbursement details returned by the API.\");\n\nexport const rampCreateMileageReimbursement = action(\"RAMP_CREATE_MILEAGE_REIMBURSEMENT\", {\n slug: \"ramp-create-mileage-reimbursement\",\n name: \"Create Mileage Reimbursement\",\n description: \"Tool to create a mileage reimbursement in Ramp. Use when a user needs to submit a reimbursement for business-related travel distance. Requires distance, reimbursee_id, and trip_date as mandatory fields.\",\n input: RampCreateMileageReimbursementInput,\n output: RampCreateMileageReimbursementOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CACrH,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;CAC1C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACvF,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAC3F,gBAAgBA,IAAAA,EAA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CACtH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACpG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjK,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,6BAA6BA,IAAAA,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClM,+BAA+B,iDAAiD,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-mileage-reimbursement.cjs","names":["z","action"],"sources":["../../src/actions/create-mileage-reimbursement.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ramp } from \"../app\";\n\nexport const RampCreateMileageReimbursementInput = z.object({\n memo: z.string().describe(\"Memo or note describing the purpose of the mileage reimbursement. This field is required.\"),\n distance: z.union([z.string(), z.number()]),\n trip_date: z.string().describe(\"Date of the trip in ISO 8601 date format (YYYY-MM-DD).\"),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip.\").optional(),\n end_location: z.string().describe(\"Ending location of the trip.\").optional(),\n reimbursee_id: z.string().describe(\"Unique identifier (UUID) of the user to be reimbursed.\"),\n distance_units: z.enum([\"KILOMETERS\", \"MILES\"]).describe(\"Distance units for mileage reimbursement.\").optional(),\n start_location: z.string().describe(\"Starting location of the trip.\").optional(),\n});\nconst RampCreateMileageReimbursement_ReimbursementTypeSchema = z.enum([\"MILEAGE\", \"OUT_OF_POCKET\", \"PAYBACK_FULL\", \"PAYBACK_PARTIAL\", \"PER_DIEM\"]).describe(\"Type of the reimbursement.\");\nconst RampCreateMileageReimbursement_ReimbursementStateSchema = z.enum([\"APPROVED\", \"AWAITING_EXPORT\", \"AWAITING_PAYMENT\", \"AWAITING_PUSH_PAYMENT\", \"CANCELED\", \"DELETED\", \"DRAFT\", \"EXPORTED\", \"EXPORT_FAILED\", \"EXPORT_INITIATED\", \"EXPORT_MARKED_AS_FAILED\", \"EXPORT_SUCCESSFUL\", \"FAILED_REIMBURSEMENT\", \"INIT\", \"MANUALLY_REIMBURSED\", \"MISSING_ACH\", \"PENDING\", \"PROCESSING\", \"PUSH_PAYMENT_FAILED\", \"PUSH_PAYMENT_INITIATED\", \"REIMBURSED\", \"REIMBURSED_VIA_PUSH\", \"REJECTED\"]).describe(\"Current state of the reimbursement.\");\nconst RampCreateMileageReimbursement_AttendeeSchema = z.object({\n name: z.string().describe(\"Name of the attendee\").nullable(),\n user_id: z.string().describe(\"User ID of the attendee if they are a Ramp user\").nullable().optional(),\n}).passthrough().describe(\"Attendee information for a reimbursement.\");\nconst RampCreateMileageReimbursement_ReimbursementDirectionSchema = z.enum([\"BUSINESS_TO_USER\", \"USER_TO_BUSINESS\"]).describe(\"Direction of the reimbursement.\");\nconst RampCreateMileageReimbursement_LineItemAmountSchema = z.object({\n amount: z.number().int().describe(\"Numeric value of the line item amount in minor currency units\").nullable(),\n currency_code: z.string().describe(\"Currency code for the line item\").nullable(),\n}).passthrough().describe(\"Amount object for a line item.\");\nconst RampCreateMileageReimbursement_CategoryInfoSchema = 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}).passthrough().describe(\"Category information for an accounting field.\");\nconst RampCreateMileageReimbursement_AccountingFieldSelectionSchema = 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 source: z.record(z.string(), z.unknown()).describe(\"Source information for the accounting field selection\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampCreateMileageReimbursement_CategoryInfoSchema.nullable().optional(),\n external_code: z.string().describe(\"External code for the accounting field selection\").nullable().optional(),\n provider_name: z.string().describe(\"Provider name for the accounting field selection\").nullable().optional(),\n}).passthrough().describe(\"Accounting field selection with category information.\");\nconst RampCreateMileageReimbursement_LineItemSchema = z.object({\n memo: z.string().describe(\"Memo for this line item\").nullable().optional(),\n amount: RampCreateMileageReimbursement_LineItemAmountSchema.nullable(),\n accounting_field_selections: z.array(RampCreateMileageReimbursement_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\"),\n}).passthrough().describe(\"Individual line item within a reimbursement.\");\nconst RampCreateMileageReimbursement_SyncStatusSchema = z.enum([\"NOT_SYNC_READY\", \"SYNCED\", \"SYNC_READY\"]).describe(\"Current sync status of the reimbursement.\");\nconst RampCreateMileageReimbursement_MoneyAmountSchema = z.object({\n amount: z.number().int().describe(\"Numeric value of the amount in minor currency units (e.g., cents)\").nullable(),\n currency_code: z.string().describe(\"Currency code (e.g., USD, EUR)\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate for minor units\").nullable().optional(),\n}).passthrough().describe(\"Amount object with currency information.\");\nconst RampCreateMileageReimbursement_ExpenseGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense group\").nullable(),\n name: z.string().describe(\"Name of the expense group\").nullable(),\n}).passthrough().describe(\"Expense group information.\");\nexport const RampCreateMileageReimbursementOutput = z.object({\n id: z.string().describe(\"Unique identifier of the reimbursement\").nullable(),\n memo: z.string().describe(\"Reimbursement memo\").nullable().optional(),\n type: RampCreateMileageReimbursement_ReimbursementTypeSchema.nullable(),\n state: RampCreateMileageReimbursement_ReimbursementStateSchema.nullable(),\n amount: z.number().describe(\"The amount that the payor pays.\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID associated with the reimbursement if a Trip ID is available.\").nullable().optional(),\n user_id: z.string().describe(\"Unique identifier of the person who made the reimbursement.\").nullable(),\n currency: z.string().describe(\"The currency that the payor pays with.\").nullable(),\n distance: z.number().describe(\"The distance of the reimbursement in miles, for mileage reimbursements.\").nullable().optional(),\n merchant: z.string().describe(\"The name of the merchant that the reimbursement is associated with.\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt IDs associated with the reimbursement.\").nullable().optional(),\n attendees: z.array(RampCreateMileageReimbursement_AttendeeSchema).describe(\"List of attendees for the reimbursement.\").nullable().optional(),\n direction: RampCreateMileageReimbursement_ReimbursementDirectionSchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated business entity.\").nullable().optional(),\n synced_at: z.string().describe(\"Time when reimbursement has been synced. Will be None if the reimbursement is not synced.\").nullable().optional(),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip, for mileage reimbursements.\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the reimbursement is created. Presented in ISO8601 format.\").nullable(),\n line_items: z.array(RampCreateMileageReimbursement_LineItemSchema).describe(\"List of line items related to the reimbursement.\").nullable().optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment batch that the reimbursement is associated with, once paid.\").nullable().optional(),\n updated_at: z.string().describe(\"Time at which the reimbursement was last updated. Presented in ISO8601 format.\").nullable().optional(),\n user_email: z.string().describe(\"Email of the person who made the reimbursement.\").nullable(),\n approved_at: z.string().describe(\"Time at which the reimbursement is approved. Presented in ISO8601 format.\").nullable().optional(),\n employee_id: z.string().describe(\"Employee ID of the person who made the reimbursement.\").nullable().optional(),\n merchant_id: z.string().describe(\"The unique identifier of the merchant. Note that this field may be empty when merchant is populated if Ramp does not recognize the merchant.\").nullable().optional(),\n sync_status: RampCreateMileageReimbursement_SyncStatusSchema.nullable().optional(),\n end_location: z.string().describe(\"Ending location of the trip, for mileage reimbursements.\").nullable().optional(),\n payee_amount: RampCreateMileageReimbursement_MoneyAmountSchema.nullable().optional(),\n submitted_at: z.string().describe(\"Time when reimbursement was most recently submitted\").nullable().optional(),\n expense_group: RampCreateMileageReimbursement_ExpenseGroupSchema.nullable().optional(),\n spend_limit_id: z.string().describe(\"Spend limit to which the reimbursement is attributed, if it exists.\").nullable().optional(),\n start_location: z.string().describe(\"Starting location of the trip, for mileage reimbursements.\").nullable().optional(),\n user_full_name: z.string().describe(\"Full name of the person who made the reimbursement.\").nullable(),\n accounting_date: z.string().describe(\"The date for the reimbursement for accounting purposes. If not specified, falls back to the transaction date.\").nullable().optional(),\n payment_batch_id: z.string().describe(\"The unique identifier of the reimbursement payment batch that the reimbursement is associated with.\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the transaction in ISO 8601 date format.\").nullable().optional(),\n payment_processed_at: z.string().describe(\"Time of reimbursement payment. Presented in ISO8601 format.\").nullable().optional(),\n accounting_field_selections: z.array(RampCreateMileageReimbursement_AccountingFieldSelectionSchema).describe(\"List of accounting fields selected to code the reimbursement.\").nullable().optional(),\n original_reimbursement_amount: RampCreateMileageReimbursement_MoneyAmountSchema.nullable().optional(),\n}).passthrough().describe(\"Complete mileage reimbursement details returned by the API.\");\n\nexport const rampCreateMileageReimbursement: AppAction<\n typeof RampCreateMileageReimbursementInput,\n typeof RampCreateMileageReimbursementOutput,\n typeof ramp.credential\n> = action(\"RAMP_CREATE_MILEAGE_REIMBURSEMENT\", {\n slug: \"ramp-create-mileage-reimbursement\",\n name: \"Create Mileage Reimbursement\",\n description: \"Tool to create a mileage reimbursement in Ramp. Use when a user needs to submit a reimbursement for business-related travel distance. Requires distance, reimbursee_id, and trip_date as mandatory fields.\",\n input: RampCreateMileageReimbursementInput,\n output: RampCreateMileageReimbursementOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;CACrH,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC;CAC1C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACvF,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC3E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAC3F,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,cAAc,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC/G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACjF,CAAC;AACD,MAAM,yDAAyDA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAiB;CAAgB;CAAmB;AAAU,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxL,MAAM,0DAA0DA,IAAAA,EAAE,KAAK;CAAC;CAAY;CAAmB;CAAoB;CAAyB;CAAY;CAAW;CAAS;CAAY;CAAiB;CAAoB;CAA2B;CAAqB;CAAwB;CAAQ;CAAuB;CAAe;CAAW;CAAc;CAAuB;CAA0B;CAAc;CAAuB;AAAU,CAAC,CAAC,CAAC,SAAS,qC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DAA6D,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClM,+BAA+B,iDAAiD,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,iCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ramp } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-mileage-reimbursement.d.ts
|
|
@@ -140,16 +142,7 @@ declare const RampCreateMileageReimbursementOutput: z.ZodObject<{
|
|
|
140
142
|
minor_unit_conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
141
143
|
}, z.core.$loose>>>;
|
|
142
144
|
}, z.core.$loose>;
|
|
143
|
-
declare const rampCreateMileageReimbursement:
|
|
144
|
-
memo: string;
|
|
145
|
-
distance: string | number;
|
|
146
|
-
trip_date: string;
|
|
147
|
-
reimbursee_id: string;
|
|
148
|
-
waypoints?: string[] | undefined;
|
|
149
|
-
end_location?: string | undefined;
|
|
150
|
-
distance_units?: "KILOMETERS" | "MILES" | undefined;
|
|
151
|
-
start_location?: string | undefined;
|
|
152
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
145
|
+
declare const rampCreateMileageReimbursement: AppAction<typeof RampCreateMileageReimbursementInput, typeof RampCreateMileageReimbursementOutput, typeof ramp.credential>;
|
|
153
146
|
//#endregion
|
|
154
147
|
export { rampCreateMileageReimbursement };
|
|
155
148
|
//# sourceMappingURL=create-mileage-reimbursement.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mileage-reimbursement.d.cts","names":[],"sources":["../../src/actions/create-mileage-reimbursement.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-mileage-reimbursement.d.cts","names":[],"sources":["../../src/actions/create-mileage-reimbursement.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAoDnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ramp } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-mileage-reimbursement.d.ts
|
|
@@ -140,16 +142,7 @@ declare const RampCreateMileageReimbursementOutput: z.ZodObject<{
|
|
|
140
142
|
minor_unit_conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
141
143
|
}, z.core.$loose>>>;
|
|
142
144
|
}, z.core.$loose>;
|
|
143
|
-
declare const rampCreateMileageReimbursement:
|
|
144
|
-
memo: string;
|
|
145
|
-
distance: string | number;
|
|
146
|
-
trip_date: string;
|
|
147
|
-
reimbursee_id: string;
|
|
148
|
-
waypoints?: string[] | undefined;
|
|
149
|
-
end_location?: string | undefined;
|
|
150
|
-
distance_units?: "KILOMETERS" | "MILES" | undefined;
|
|
151
|
-
start_location?: string | undefined;
|
|
152
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
145
|
+
declare const rampCreateMileageReimbursement: AppAction<typeof RampCreateMileageReimbursementInput, typeof RampCreateMileageReimbursementOutput, typeof ramp.credential>;
|
|
153
146
|
//#endregion
|
|
154
147
|
export { rampCreateMileageReimbursement };
|
|
155
148
|
//# sourceMappingURL=create-mileage-reimbursement.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mileage-reimbursement.d.mts","names":[],"sources":["../../src/actions/create-mileage-reimbursement.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-mileage-reimbursement.d.mts","names":[],"sources":["../../src/actions/create-mileage-reimbursement.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAoDnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,IAAA,CAAK,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-mileage-reimbursement.mjs","names":[],"sources":["../../src/actions/create-mileage-reimbursement.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampCreateMileageReimbursementInput = z.object({\n memo: z.string().describe(\"Memo or note describing the purpose of the mileage reimbursement. This field is required.\"),\n distance: z.union([z.string(), z.number()]),\n trip_date: z.string().describe(\"Date of the trip in ISO 8601 date format (YYYY-MM-DD).\"),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip.\").optional(),\n end_location: z.string().describe(\"Ending location of the trip.\").optional(),\n reimbursee_id: z.string().describe(\"Unique identifier (UUID) of the user to be reimbursed.\"),\n distance_units: z.enum([\"KILOMETERS\", \"MILES\"]).describe(\"Distance units for mileage reimbursement.\").optional(),\n start_location: z.string().describe(\"Starting location of the trip.\").optional(),\n});\nconst RampCreateMileageReimbursement_ReimbursementTypeSchema = z.enum([\"MILEAGE\", \"OUT_OF_POCKET\", \"PAYBACK_FULL\", \"PAYBACK_PARTIAL\", \"PER_DIEM\"]).describe(\"Type of the reimbursement.\");\nconst RampCreateMileageReimbursement_ReimbursementStateSchema = z.enum([\"APPROVED\", \"AWAITING_EXPORT\", \"AWAITING_PAYMENT\", \"AWAITING_PUSH_PAYMENT\", \"CANCELED\", \"DELETED\", \"DRAFT\", \"EXPORTED\", \"EXPORT_FAILED\", \"EXPORT_INITIATED\", \"EXPORT_MARKED_AS_FAILED\", \"EXPORT_SUCCESSFUL\", \"FAILED_REIMBURSEMENT\", \"INIT\", \"MANUALLY_REIMBURSED\", \"MISSING_ACH\", \"PENDING\", \"PROCESSING\", \"PUSH_PAYMENT_FAILED\", \"PUSH_PAYMENT_INITIATED\", \"REIMBURSED\", \"REIMBURSED_VIA_PUSH\", \"REJECTED\"]).describe(\"Current state of the reimbursement.\");\nconst RampCreateMileageReimbursement_AttendeeSchema = z.object({\n name: z.string().describe(\"Name of the attendee\").nullable(),\n user_id: z.string().describe(\"User ID of the attendee if they are a Ramp user\").nullable().optional(),\n}).passthrough().describe(\"Attendee information for a reimbursement.\");\nconst RampCreateMileageReimbursement_ReimbursementDirectionSchema = z.enum([\"BUSINESS_TO_USER\", \"USER_TO_BUSINESS\"]).describe(\"Direction of the reimbursement.\");\nconst RampCreateMileageReimbursement_LineItemAmountSchema = z.object({\n amount: z.number().int().describe(\"Numeric value of the line item amount in minor currency units\").nullable(),\n currency_code: z.string().describe(\"Currency code for the line item\").nullable(),\n}).passthrough().describe(\"Amount object for a line item.\");\nconst RampCreateMileageReimbursement_CategoryInfoSchema = 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}).passthrough().describe(\"Category information for an accounting field.\");\nconst RampCreateMileageReimbursement_AccountingFieldSelectionSchema = 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 source: z.record(z.string(), z.unknown()).describe(\"Source information for the accounting field selection\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampCreateMileageReimbursement_CategoryInfoSchema.nullable().optional(),\n external_code: z.string().describe(\"External code for the accounting field selection\").nullable().optional(),\n provider_name: z.string().describe(\"Provider name for the accounting field selection\").nullable().optional(),\n}).passthrough().describe(\"Accounting field selection with category information.\");\nconst RampCreateMileageReimbursement_LineItemSchema = z.object({\n memo: z.string().describe(\"Memo for this line item\").nullable().optional(),\n amount: RampCreateMileageReimbursement_LineItemAmountSchema.nullable(),\n accounting_field_selections: z.array(RampCreateMileageReimbursement_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\"),\n}).passthrough().describe(\"Individual line item within a reimbursement.\");\nconst RampCreateMileageReimbursement_SyncStatusSchema = z.enum([\"NOT_SYNC_READY\", \"SYNCED\", \"SYNC_READY\"]).describe(\"Current sync status of the reimbursement.\");\nconst RampCreateMileageReimbursement_MoneyAmountSchema = z.object({\n amount: z.number().int().describe(\"Numeric value of the amount in minor currency units (e.g., cents)\").nullable(),\n currency_code: z.string().describe(\"Currency code (e.g., USD, EUR)\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate for minor units\").nullable().optional(),\n}).passthrough().describe(\"Amount object with currency information.\");\nconst RampCreateMileageReimbursement_ExpenseGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense group\").nullable(),\n name: z.string().describe(\"Name of the expense group\").nullable(),\n}).passthrough().describe(\"Expense group information.\");\nexport const RampCreateMileageReimbursementOutput = z.object({\n id: z.string().describe(\"Unique identifier of the reimbursement\").nullable(),\n memo: z.string().describe(\"Reimbursement memo\").nullable().optional(),\n type: RampCreateMileageReimbursement_ReimbursementTypeSchema.nullable(),\n state: RampCreateMileageReimbursement_ReimbursementStateSchema.nullable(),\n amount: z.number().describe(\"The amount that the payor pays.\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID associated with the reimbursement if a Trip ID is available.\").nullable().optional(),\n user_id: z.string().describe(\"Unique identifier of the person who made the reimbursement.\").nullable(),\n currency: z.string().describe(\"The currency that the payor pays with.\").nullable(),\n distance: z.number().describe(\"The distance of the reimbursement in miles, for mileage reimbursements.\").nullable().optional(),\n merchant: z.string().describe(\"The name of the merchant that the reimbursement is associated with.\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt IDs associated with the reimbursement.\").nullable().optional(),\n attendees: z.array(RampCreateMileageReimbursement_AttendeeSchema).describe(\"List of attendees for the reimbursement.\").nullable().optional(),\n direction: RampCreateMileageReimbursement_ReimbursementDirectionSchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated business entity.\").nullable().optional(),\n synced_at: z.string().describe(\"Time when reimbursement has been synced. Will be None if the reimbursement is not synced.\").nullable().optional(),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip, for mileage reimbursements.\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the reimbursement is created. Presented in ISO8601 format.\").nullable(),\n line_items: z.array(RampCreateMileageReimbursement_LineItemSchema).describe(\"List of line items related to the reimbursement.\").nullable().optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment batch that the reimbursement is associated with, once paid.\").nullable().optional(),\n updated_at: z.string().describe(\"Time at which the reimbursement was last updated. Presented in ISO8601 format.\").nullable().optional(),\n user_email: z.string().describe(\"Email of the person who made the reimbursement.\").nullable(),\n approved_at: z.string().describe(\"Time at which the reimbursement is approved. Presented in ISO8601 format.\").nullable().optional(),\n employee_id: z.string().describe(\"Employee ID of the person who made the reimbursement.\").nullable().optional(),\n merchant_id: z.string().describe(\"The unique identifier of the merchant. Note that this field may be empty when merchant is populated if Ramp does not recognize the merchant.\").nullable().optional(),\n sync_status: RampCreateMileageReimbursement_SyncStatusSchema.nullable().optional(),\n end_location: z.string().describe(\"Ending location of the trip, for mileage reimbursements.\").nullable().optional(),\n payee_amount: RampCreateMileageReimbursement_MoneyAmountSchema.nullable().optional(),\n submitted_at: z.string().describe(\"Time when reimbursement was most recently submitted\").nullable().optional(),\n expense_group: RampCreateMileageReimbursement_ExpenseGroupSchema.nullable().optional(),\n spend_limit_id: z.string().describe(\"Spend limit to which the reimbursement is attributed, if it exists.\").nullable().optional(),\n start_location: z.string().describe(\"Starting location of the trip, for mileage reimbursements.\").nullable().optional(),\n user_full_name: z.string().describe(\"Full name of the person who made the reimbursement.\").nullable(),\n accounting_date: z.string().describe(\"The date for the reimbursement for accounting purposes. If not specified, falls back to the transaction date.\").nullable().optional(),\n payment_batch_id: z.string().describe(\"The unique identifier of the reimbursement payment batch that the reimbursement is associated with.\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the transaction in ISO 8601 date format.\").nullable().optional(),\n payment_processed_at: z.string().describe(\"Time of reimbursement payment. Presented in ISO8601 format.\").nullable().optional(),\n accounting_field_selections: z.array(RampCreateMileageReimbursement_AccountingFieldSelectionSchema).describe(\"List of accounting fields selected to code the reimbursement.\").nullable().optional(),\n original_reimbursement_amount: RampCreateMileageReimbursement_MoneyAmountSchema.nullable().optional(),\n}).passthrough().describe(\"Complete mileage reimbursement details returned by the API.\");\n\nexport const rampCreateMileageReimbursement = action(\"RAMP_CREATE_MILEAGE_REIMBURSEMENT\", {\n slug: \"ramp-create-mileage-reimbursement\",\n name: \"Create Mileage Reimbursement\",\n description: \"Tool to create a mileage reimbursement in Ramp. Use when a user needs to submit a reimbursement for business-related travel distance. Requires distance, reimbursee_id, and trip_date as mandatory fields.\",\n input: RampCreateMileageReimbursementInput,\n output: RampCreateMileageReimbursementOutput,\n});\n"],"mappings":";;;AAIA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CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1K,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjK,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,6BAA6B,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClM,+BAA+B,iDAAiD,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-mileage-reimbursement.mjs","names":[],"sources":["../../src/actions/create-mileage-reimbursement.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ramp } from \"../app\";\n\nexport const RampCreateMileageReimbursementInput = z.object({\n memo: z.string().describe(\"Memo or note describing the purpose of the mileage reimbursement. This field is required.\"),\n distance: z.union([z.string(), z.number()]),\n trip_date: z.string().describe(\"Date of the trip in ISO 8601 date format (YYYY-MM-DD).\"),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip.\").optional(),\n end_location: z.string().describe(\"Ending location of the trip.\").optional(),\n reimbursee_id: z.string().describe(\"Unique identifier (UUID) of the user to be reimbursed.\"),\n distance_units: z.enum([\"KILOMETERS\", \"MILES\"]).describe(\"Distance units for mileage reimbursement.\").optional(),\n start_location: z.string().describe(\"Starting location of the trip.\").optional(),\n});\nconst RampCreateMileageReimbursement_ReimbursementTypeSchema = z.enum([\"MILEAGE\", \"OUT_OF_POCKET\", \"PAYBACK_FULL\", \"PAYBACK_PARTIAL\", \"PER_DIEM\"]).describe(\"Type of the reimbursement.\");\nconst RampCreateMileageReimbursement_ReimbursementStateSchema = z.enum([\"APPROVED\", \"AWAITING_EXPORT\", \"AWAITING_PAYMENT\", \"AWAITING_PUSH_PAYMENT\", \"CANCELED\", \"DELETED\", \"DRAFT\", \"EXPORTED\", \"EXPORT_FAILED\", \"EXPORT_INITIATED\", \"EXPORT_MARKED_AS_FAILED\", \"EXPORT_SUCCESSFUL\", \"FAILED_REIMBURSEMENT\", \"INIT\", \"MANUALLY_REIMBURSED\", \"MISSING_ACH\", \"PENDING\", \"PROCESSING\", \"PUSH_PAYMENT_FAILED\", \"PUSH_PAYMENT_INITIATED\", \"REIMBURSED\", \"REIMBURSED_VIA_PUSH\", \"REJECTED\"]).describe(\"Current state of the reimbursement.\");\nconst RampCreateMileageReimbursement_AttendeeSchema = z.object({\n name: z.string().describe(\"Name of the attendee\").nullable(),\n user_id: z.string().describe(\"User ID of the attendee if they are a Ramp user\").nullable().optional(),\n}).passthrough().describe(\"Attendee information for a reimbursement.\");\nconst RampCreateMileageReimbursement_ReimbursementDirectionSchema = z.enum([\"BUSINESS_TO_USER\", \"USER_TO_BUSINESS\"]).describe(\"Direction of the reimbursement.\");\nconst RampCreateMileageReimbursement_LineItemAmountSchema = z.object({\n amount: z.number().int().describe(\"Numeric value of the line item amount in minor currency units\").nullable(),\n currency_code: z.string().describe(\"Currency code for the line item\").nullable(),\n}).passthrough().describe(\"Amount object for a line item.\");\nconst RampCreateMileageReimbursement_CategoryInfoSchema = 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}).passthrough().describe(\"Category information for an accounting field.\");\nconst RampCreateMileageReimbursement_AccountingFieldSelectionSchema = 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 source: z.record(z.string(), z.unknown()).describe(\"Source information for the accounting field selection\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampCreateMileageReimbursement_CategoryInfoSchema.nullable().optional(),\n external_code: z.string().describe(\"External code for the accounting field selection\").nullable().optional(),\n provider_name: z.string().describe(\"Provider name for the accounting field selection\").nullable().optional(),\n}).passthrough().describe(\"Accounting field selection with category information.\");\nconst RampCreateMileageReimbursement_LineItemSchema = z.object({\n memo: z.string().describe(\"Memo for this line item\").nullable().optional(),\n amount: RampCreateMileageReimbursement_LineItemAmountSchema.nullable(),\n accounting_field_selections: z.array(RampCreateMileageReimbursement_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\"),\n}).passthrough().describe(\"Individual line item within a reimbursement.\");\nconst RampCreateMileageReimbursement_SyncStatusSchema = z.enum([\"NOT_SYNC_READY\", \"SYNCED\", \"SYNC_READY\"]).describe(\"Current sync status of the reimbursement.\");\nconst RampCreateMileageReimbursement_MoneyAmountSchema = z.object({\n amount: z.number().int().describe(\"Numeric value of the amount in minor currency units (e.g., cents)\").nullable(),\n currency_code: z.string().describe(\"Currency code (e.g., USD, EUR)\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate for minor units\").nullable().optional(),\n}).passthrough().describe(\"Amount object with currency information.\");\nconst RampCreateMileageReimbursement_ExpenseGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier of the expense group\").nullable(),\n name: z.string().describe(\"Name of the expense group\").nullable(),\n}).passthrough().describe(\"Expense group information.\");\nexport const RampCreateMileageReimbursementOutput = z.object({\n id: z.string().describe(\"Unique identifier of the reimbursement\").nullable(),\n memo: z.string().describe(\"Reimbursement memo\").nullable().optional(),\n type: RampCreateMileageReimbursement_ReimbursementTypeSchema.nullable(),\n state: RampCreateMileageReimbursement_ReimbursementStateSchema.nullable(),\n amount: z.number().describe(\"The amount that the payor pays.\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID associated with the reimbursement if a Trip ID is available.\").nullable().optional(),\n user_id: z.string().describe(\"Unique identifier of the person who made the reimbursement.\").nullable(),\n currency: z.string().describe(\"The currency that the payor pays with.\").nullable(),\n distance: z.number().describe(\"The distance of the reimbursement in miles, for mileage reimbursements.\").nullable().optional(),\n merchant: z.string().describe(\"The name of the merchant that the reimbursement is associated with.\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt IDs associated with the reimbursement.\").nullable().optional(),\n attendees: z.array(RampCreateMileageReimbursement_AttendeeSchema).describe(\"List of attendees for the reimbursement.\").nullable().optional(),\n direction: RampCreateMileageReimbursement_ReimbursementDirectionSchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated business entity.\").nullable().optional(),\n synced_at: z.string().describe(\"Time when reimbursement has been synced. Will be None if the reimbursement is not synced.\").nullable().optional(),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip, for mileage reimbursements.\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the reimbursement is created. Presented in ISO8601 format.\").nullable(),\n line_items: z.array(RampCreateMileageReimbursement_LineItemSchema).describe(\"List of line items related to the reimbursement.\").nullable().optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment batch that the reimbursement is associated with, once paid.\").nullable().optional(),\n updated_at: z.string().describe(\"Time at which the reimbursement was last updated. Presented in ISO8601 format.\").nullable().optional(),\n user_email: z.string().describe(\"Email of the person who made the reimbursement.\").nullable(),\n approved_at: z.string().describe(\"Time at which the reimbursement is approved. Presented in ISO8601 format.\").nullable().optional(),\n employee_id: z.string().describe(\"Employee ID of the person who made the reimbursement.\").nullable().optional(),\n merchant_id: z.string().describe(\"The unique identifier of the merchant. Note that this field may be empty when merchant is populated if Ramp does not recognize the merchant.\").nullable().optional(),\n sync_status: RampCreateMileageReimbursement_SyncStatusSchema.nullable().optional(),\n end_location: z.string().describe(\"Ending location of the trip, for mileage reimbursements.\").nullable().optional(),\n payee_amount: RampCreateMileageReimbursement_MoneyAmountSchema.nullable().optional(),\n submitted_at: z.string().describe(\"Time when reimbursement was most recently submitted\").nullable().optional(),\n expense_group: RampCreateMileageReimbursement_ExpenseGroupSchema.nullable().optional(),\n spend_limit_id: z.string().describe(\"Spend limit to which the reimbursement is attributed, if it exists.\").nullable().optional(),\n start_location: z.string().describe(\"Starting location of the trip, for mileage reimbursements.\").nullable().optional(),\n user_full_name: z.string().describe(\"Full name of the person who made the reimbursement.\").nullable(),\n accounting_date: z.string().describe(\"The date for the reimbursement for accounting purposes. If not specified, falls back to the transaction date.\").nullable().optional(),\n payment_batch_id: z.string().describe(\"The unique identifier of the reimbursement payment batch that the reimbursement is associated with.\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the transaction in ISO 8601 date format.\").nullable().optional(),\n payment_processed_at: z.string().describe(\"Time of reimbursement payment. Presented in ISO8601 format.\").nullable().optional(),\n accounting_field_selections: z.array(RampCreateMileageReimbursement_AccountingFieldSelectionSchema).describe(\"List of accounting fields selected to code the reimbursement.\").nullable().optional(),\n original_reimbursement_amount: RampCreateMileageReimbursement_MoneyAmountSchema.nullable().optional(),\n}).passthrough().describe(\"Complete mileage reimbursement details returned by the API.\");\n\nexport const rampCreateMileageReimbursement: AppAction<\n typeof RampCreateMileageReimbursementInput,\n typeof RampCreateMileageReimbursementOutput,\n typeof ramp.credential\n> = action(\"RAMP_CREATE_MILEAGE_REIMBURSEMENT\", {\n slug: \"ramp-create-mileage-reimbursement\",\n name: \"Create Mileage Reimbursement\",\n description: \"Tool to create a mileage reimbursement in Ramp. Use when a user needs to submit a reimbursement for business-related travel distance. Requires distance, reimbursee_id, and trip_date as mandatory fields.\",\n input: RampCreateMileageReimbursementInput,\n output: RampCreateMileageReimbursementOutput,\n});\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BAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1K,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjK,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,6BAA6B,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClM,+BAA+B,iDAAiD,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-new-custom-accounting-field.cjs","names":["z","action"],"sources":["../../src/actions/create-new-custom-accounting-field.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampCreateNewCustomAccountingFieldInput = z.object({\n id: z.string().describe(\"Remote/external ID of custom accounting field from ERP system.\"),\n name: z.string().describe(\"Name of the custom accounting field.\"),\n input_type: z.enum([\"SINGLE_CHOICE\", \"BOOLEAN\", \"FREE_FORM_TEXT\"]).describe(\"The input type could be SINGLE_CHOICE, BOOLEAN or FREE_FORM_TEXT.\"),\n is_splittable: z.boolean().describe(\"If set to True, the accounting field can be used to annotate split line items.\").optional(),\n is_required_for: z.array(z.enum([\"BILL\", \"BILL_PAYMENT\", \"PURCHASE_ORDER\", \"REIMBURSEMENT\", \"TRANSACTION\"])).describe(\"Types of objects that require this accounting field to be used for coding before they can be marked as ready to sync.\").optional(),\n});\nexport const RampCreateNewCustomAccountingFieldOutput = z.object({\n id: z.string().describe(\"External ID of the custom accounting field\").nullable(),\n name: z.string().describe(\"Display name of the custom accounting field\").nullable(),\n ramp_id: z.string().describe(\"Ramp's internal UUID identifier for the custom accounting field\").nullable(),\n is_active: z.boolean().describe(\"Indicates whether the accounting field is currently active\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the accounting field was created\").nullable(),\n input_type: z.string().describe(\"The type of input field (SINGLE_CHOICE, BOOLEAN, or FREE_FORM_TEXT)\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the accounting field was last updated\").nullable(),\n display_name: z.string().describe(\"Optional display name for the accounting field\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the field can be split across multiple line items in transactions\").nullable(),\n provider_name: z.string().describe(\"The name of the accounting provider (e.g., NETSUITE, QUICKBOOKS)\").nullable().optional(),\n is_required_for: z.array(z.string()).describe(\"Types of objects that require this accounting field\").nullable().optional(),\n accounting_connection_id: z.string().describe(\"The accounting connection ID associated with this field\").nullable().optional(),\n}).passthrough().describe(\"Response from creating a new custom accounting field.\");\n\nexport const rampCreateNewCustomAccountingField = action(\"RAMP_CREATE_NEW_CUSTOM_ACCOUNTING_FIELD\", {\n slug: \"ramp-create-new-custom-accounting-field\",\n name: \"Create New Custom Accounting Field\",\n description: \"Tool for creating a new custom accounting field. Note: This operation requires elevated permissions not available in the demo API.\",\n input: RampCreateNewCustomAccountingFieldInput,\n output: RampCreateNewCustomAccountingFieldOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-new-custom-accounting-field.cjs","names":["z","action"],"sources":["../../src/actions/create-new-custom-accounting-field.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ramp } from \"../app\";\n\nexport const RampCreateNewCustomAccountingFieldInput = z.object({\n id: z.string().describe(\"Remote/external ID of custom accounting field from ERP system.\"),\n name: z.string().describe(\"Name of the custom accounting field.\"),\n input_type: z.enum([\"SINGLE_CHOICE\", \"BOOLEAN\", \"FREE_FORM_TEXT\"]).describe(\"The input type could be SINGLE_CHOICE, BOOLEAN or FREE_FORM_TEXT.\"),\n is_splittable: z.boolean().describe(\"If set to True, the accounting field can be used to annotate split line items.\").optional(),\n is_required_for: z.array(z.enum([\"BILL\", \"BILL_PAYMENT\", \"PURCHASE_ORDER\", \"REIMBURSEMENT\", \"TRANSACTION\"])).describe(\"Types of objects that require this accounting field to be used for coding before they can be marked as ready to sync.\").optional(),\n});\nexport const RampCreateNewCustomAccountingFieldOutput = z.object({\n id: z.string().describe(\"External ID of the custom accounting field\").nullable(),\n name: z.string().describe(\"Display name of the custom accounting field\").nullable(),\n ramp_id: z.string().describe(\"Ramp's internal UUID identifier for the custom accounting field\").nullable(),\n is_active: z.boolean().describe(\"Indicates whether the accounting field is currently active\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the accounting field was created\").nullable(),\n input_type: z.string().describe(\"The type of input field (SINGLE_CHOICE, BOOLEAN, or FREE_FORM_TEXT)\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp of when the accounting field was last updated\").nullable(),\n display_name: z.string().describe(\"Optional display name for the accounting field\").nullable().optional(),\n is_splittable: z.boolean().describe(\"Whether the field can be split across multiple line items in transactions\").nullable(),\n provider_name: z.string().describe(\"The name of the accounting provider (e.g., NETSUITE, QUICKBOOKS)\").nullable().optional(),\n is_required_for: z.array(z.string()).describe(\"Types of objects that require this accounting field\").nullable().optional(),\n accounting_connection_id: z.string().describe(\"The accounting connection ID associated with this field\").nullable().optional(),\n}).passthrough().describe(\"Response from creating a new custom accounting field.\");\n\nexport const rampCreateNewCustomAccountingField: AppAction<\n typeof RampCreateNewCustomAccountingFieldInput,\n typeof RampCreateNewCustomAccountingFieldOutput,\n typeof ramp.credential\n> = action(\"RAMP_CREATE_NEW_CUSTOM_ACCOUNTING_FIELD\", {\n slug: \"ramp-create-new-custom-accounting-field\",\n name: \"Create New Custom Accounting Field\",\n description: \"Tool for creating a new custom accounting field. Note: This operation requires elevated permissions not available in the demo API.\",\n input: RampCreateNewCustomAccountingFieldInput,\n output: RampCreateNewCustomAccountingFieldOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CAChE,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAiB;EAAW;CAAgB,CAAC,CAAC,CAAC,SAAS,mEAAmE;CAC/I,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC/H,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAgB;EAAkB;EAAiB;CAAa,CAAC,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;AAC1P,CAAC;AACD,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACzG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAChH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC1H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,qCAITC,eAAAA,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ramp } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/create-new-custom-accounting-field.d.ts
|
|
@@ -32,13 +34,7 @@ declare const RampCreateNewCustomAccountingFieldOutput: z.ZodObject<{
|
|
|
32
34
|
is_required_for: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
33
35
|
accounting_connection_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
36
|
}, z.core.$loose>;
|
|
35
|
-
declare const rampCreateNewCustomAccountingField:
|
|
36
|
-
id: string;
|
|
37
|
-
name: string;
|
|
38
|
-
input_type: "SINGLE_CHOICE" | "BOOLEAN" | "FREE_FORM_TEXT";
|
|
39
|
-
is_splittable?: boolean | undefined;
|
|
40
|
-
is_required_for?: ("BILL" | "BILL_PAYMENT" | "PURCHASE_ORDER" | "REIMBURSEMENT" | "TRANSACTION")[] | undefined;
|
|
41
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
|
+
declare const rampCreateNewCustomAccountingField: AppAction<typeof RampCreateNewCustomAccountingFieldInput, typeof RampCreateNewCustomAccountingFieldOutput, typeof ramp.credential>;
|
|
42
38
|
//#endregion
|
|
43
39
|
export { rampCreateNewCustomAccountingField };
|
|
44
40
|
//# sourceMappingURL=create-new-custom-accounting-field.d.cts.map
|