@keystrokehq/ramp 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/actions/create-department.cjs +1 -1
- package/dist/actions/create-department.cjs.map +1 -1
- package/dist/actions/create-department.d.cts +1 -1
- package/dist/actions/create-department.d.mts +1 -1
- package/dist/actions/create-department.mjs +1 -1
- package/dist/actions/create-department.mjs.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.cjs +1 -1
- package/dist/actions/create-inventory-item-accounting-field.cjs.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.d.cts +1 -1
- package/dist/actions/create-inventory-item-accounting-field.d.mts +1 -1
- package/dist/actions/create-inventory-item-accounting-field.mjs +1 -1
- package/dist/actions/create-inventory-item-accounting-field.mjs.map +1 -1
- package/dist/actions/create-memo.cjs +1 -1
- package/dist/actions/create-memo.cjs.map +1 -1
- package/dist/actions/create-memo.d.cts +1 -1
- package/dist/actions/create-memo.d.mts +1 -1
- package/dist/actions/create-memo.mjs +1 -1
- package/dist/actions/create-memo.mjs.map +1 -1
- package/dist/actions/create-mileage-reimbursement.cjs +9 -9
- package/dist/actions/create-mileage-reimbursement.cjs.map +1 -1
- package/dist/actions/create-mileage-reimbursement.d.cts +13 -13
- package/dist/actions/create-mileage-reimbursement.d.mts +13 -13
- package/dist/actions/create-mileage-reimbursement.mjs +9 -9
- package/dist/actions/create-mileage-reimbursement.mjs.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.cjs +1 -1
- package/dist/actions/create-new-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.d.cts +1 -1
- package/dist/actions/create-new-custom-accounting-field.d.mts +1 -1
- package/dist/actions/create-new-custom-accounting-field.mjs +1 -1
- package/dist/actions/create-new-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.cjs +1 -1
- package/dist/actions/create-tax-code-accounting-field.cjs.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.d.cts +1 -1
- package/dist/actions/create-tax-code-accounting-field.d.mts +1 -1
- package/dist/actions/create-tax-code-accounting-field.mjs +1 -1
- package/dist/actions/create-tax-code-accounting-field.mjs.map +1 -1
- package/dist/actions/create-user-invite.cjs +1 -1
- package/dist/actions/create-user-invite.cjs.map +1 -1
- package/dist/actions/create-user-invite.d.cts +1 -1
- package/dist/actions/create-user-invite.d.mts +1 -1
- package/dist/actions/create-user-invite.mjs +1 -1
- package/dist/actions/create-user-invite.mjs.map +1 -1
- package/dist/actions/create-webhook-subscription.cjs +3 -3
- package/dist/actions/create-webhook-subscription.cjs.map +1 -1
- package/dist/actions/create-webhook-subscription.d.cts +4 -4
- package/dist/actions/create-webhook-subscription.d.mts +4 -4
- package/dist/actions/create-webhook-subscription.mjs +3 -3
- package/dist/actions/create-webhook-subscription.mjs.map +1 -1
- package/dist/actions/deactivate-user.cjs +1 -1
- package/dist/actions/deactivate-user.cjs.map +1 -1
- package/dist/actions/deactivate-user.d.cts +1 -1
- package/dist/actions/deactivate-user.d.cts.map +1 -1
- package/dist/actions/deactivate-user.d.mts +1 -1
- package/dist/actions/deactivate-user.d.mts.map +1 -1
- package/dist/actions/deactivate-user.mjs +1 -1
- package/dist/actions/deactivate-user.mjs.map +1 -1
- package/dist/actions/delete-accounting-account.cjs +1 -1
- package/dist/actions/delete-accounting-account.cjs.map +1 -1
- package/dist/actions/delete-accounting-account.d.cts +1 -1
- package/dist/actions/delete-accounting-account.d.mts +1 -1
- package/dist/actions/delete-accounting-account.mjs +1 -1
- package/dist/actions/delete-accounting-account.mjs.map +1 -1
- package/dist/actions/delete-accounting-connection.cjs +1 -1
- package/dist/actions/delete-accounting-connection.cjs.map +1 -1
- package/dist/actions/delete-accounting-connection.d.cts +1 -1
- package/dist/actions/delete-accounting-connection.d.mts +1 -1
- package/dist/actions/delete-accounting-connection.mjs +1 -1
- package/dist/actions/delete-accounting-connection.mjs.map +1 -1
- package/dist/actions/delete-accounting-fields.cjs +1 -1
- package/dist/actions/delete-accounting-fields.cjs.map +1 -1
- package/dist/actions/delete-accounting-fields.d.cts +1 -1
- package/dist/actions/delete-accounting-fields.d.mts +1 -1
- package/dist/actions/delete-accounting-fields.mjs +1 -1
- package/dist/actions/delete-accounting-fields.mjs.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.cjs +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.d.cts +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.d.mts +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.mjs +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.cjs +1 -1
- package/dist/actions/delete-accounting-tax-code-options.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.d.cts +1 -1
- package/dist/actions/delete-accounting-tax-code-options.d.mts +1 -1
- package/dist/actions/delete-accounting-tax-code-options.mjs +1 -1
- package/dist/actions/delete-accounting-tax-code-options.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code.cjs +1 -1
- package/dist/actions/delete-accounting-tax-code.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code.d.cts +1 -1
- package/dist/actions/delete-accounting-tax-code.d.mts +1 -1
- package/dist/actions/delete-accounting-tax-code.mjs +1 -1
- package/dist/actions/delete-accounting-tax-code.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.cjs +1 -1
- package/dist/actions/delete-accounting-tax-rates.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.d.cts +1 -1
- package/dist/actions/delete-accounting-tax-rates.d.mts +1 -1
- package/dist/actions/delete-accounting-tax-rates.mjs +1 -1
- package/dist/actions/delete-accounting-tax-rates.mjs.map +1 -1
- package/dist/actions/delete-accounting-vendors.cjs +1 -1
- package/dist/actions/delete-accounting-vendors.cjs.map +1 -1
- package/dist/actions/delete-accounting-vendors.d.cts +1 -1
- package/dist/actions/delete-accounting-vendors.d.mts +1 -1
- package/dist/actions/delete-accounting-vendors.mjs +1 -1
- package/dist/actions/delete-accounting-vendors.mjs.map +1 -1
- package/dist/actions/delete-custom-field-option.cjs +1 -1
- package/dist/actions/delete-custom-field-option.cjs.map +1 -1
- package/dist/actions/delete-custom-field-option.d.cts +1 -1
- package/dist/actions/delete-custom-field-option.d.mts +1 -1
- package/dist/actions/delete-custom-field-option.mjs +1 -1
- package/dist/actions/delete-custom-field-option.mjs.map +1 -1
- package/dist/actions/delete-inventory-item-field.cjs +1 -1
- package/dist/actions/delete-inventory-item-field.cjs.map +1 -1
- package/dist/actions/delete-inventory-item-field.d.cts +1 -1
- package/dist/actions/delete-inventory-item-field.d.mts +1 -1
- package/dist/actions/delete-inventory-item-field.mjs +1 -1
- package/dist/actions/delete-inventory-item-field.mjs.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.cjs +8 -8
- package/dist/actions/delete-spend-allocation-delete-users.cjs.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.d.cts +13 -13
- package/dist/actions/delete-spend-allocation-delete-users.d.mts +13 -13
- package/dist/actions/delete-spend-allocation-delete-users.mjs +8 -8
- package/dist/actions/delete-spend-allocation-delete-users.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -1
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +1 -1
- package/dist/actions/delete-webhook.d.mts +1 -1
- package/dist/actions/delete-webhook.mjs +1 -1
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/fetch-accounting-account.cjs +2 -2
- package/dist/actions/fetch-accounting-account.cjs.map +1 -1
- package/dist/actions/fetch-accounting-account.d.cts +2 -2
- package/dist/actions/fetch-accounting-account.d.mts +2 -2
- package/dist/actions/fetch-accounting-account.mjs +2 -2
- package/dist/actions/fetch-accounting-account.mjs.map +1 -1
- package/dist/actions/fetch-accounting-vendor.cjs +2 -2
- package/dist/actions/fetch-accounting-vendor.cjs.map +1 -1
- package/dist/actions/fetch-accounting-vendor.d.cts +2 -2
- package/dist/actions/fetch-accounting-vendor.d.mts +2 -2
- package/dist/actions/fetch-accounting-vendor.mjs +2 -2
- package/dist/actions/fetch-accounting-vendor.mjs.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.cjs +2 -2
- package/dist/actions/fetch-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.d.cts +2 -2
- package/dist/actions/fetch-custom-accounting-field.d.mts +2 -2
- package/dist/actions/fetch-custom-accounting-field.mjs +2 -2
- package/dist/actions/fetch-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/get-accounting-accounts.cjs +4 -4
- package/dist/actions/get-accounting-accounts.cjs.map +1 -1
- package/dist/actions/get-accounting-accounts.d.cts +4 -4
- package/dist/actions/get-accounting-accounts.d.mts +4 -4
- package/dist/actions/get-accounting-accounts.mjs +4 -4
- package/dist/actions/get-accounting-accounts.mjs.map +1 -1
- package/dist/actions/get-accounting-all-connections.cjs +2 -2
- package/dist/actions/get-accounting-all-connections.cjs.map +1 -1
- package/dist/actions/get-accounting-all-connections.d.cts +2 -2
- package/dist/actions/get-accounting-all-connections.d.mts +2 -2
- package/dist/actions/get-accounting-all-connections.mjs +2 -2
- package/dist/actions/get-accounting-all-connections.mjs.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.cjs +2 -2
- package/dist/actions/get-accounting-connection-by-id.cjs.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.d.cts +2 -2
- package/dist/actions/get-accounting-connection-by-id.d.mts +2 -2
- package/dist/actions/get-accounting-connection-by-id.mjs +2 -2
- package/dist/actions/get-accounting-connection-by-id.mjs.map +1 -1
- package/dist/actions/get-accounting-connection.cjs +2 -2
- package/dist/actions/get-accounting-connection.cjs.map +1 -1
- package/dist/actions/get-accounting-connection.d.cts +2 -2
- package/dist/actions/get-accounting-connection.d.mts +2 -2
- package/dist/actions/get-accounting-connection.mjs +2 -2
- package/dist/actions/get-accounting-connection.mjs.map +1 -1
- package/dist/actions/get-accounting-fields.cjs +3 -3
- package/dist/actions/get-accounting-fields.cjs.map +1 -1
- package/dist/actions/get-accounting-fields.d.cts +3 -3
- package/dist/actions/get-accounting-fields.d.mts +3 -3
- package/dist/actions/get-accounting-fields.mjs +3 -3
- package/dist/actions/get-accounting-fields.mjs.map +1 -1
- package/dist/actions/get-accounting-vendors.cjs +3 -3
- package/dist/actions/get-accounting-vendors.cjs.map +1 -1
- package/dist/actions/get-accounting-vendors.d.cts +3 -3
- package/dist/actions/get-accounting-vendors.d.mts +3 -3
- package/dist/actions/get-accounting-vendors.mjs +3 -3
- package/dist/actions/get-accounting-vendors.mjs.map +1 -1
- package/dist/actions/get-all-transactions.cjs +3 -3
- package/dist/actions/get-all-transactions.cjs.map +1 -1
- package/dist/actions/get-all-transactions.d.cts +3 -3
- package/dist/actions/get-all-transactions.d.mts +3 -3
- package/dist/actions/get-all-transactions.mjs +3 -3
- package/dist/actions/get-all-transactions.mjs.map +1 -1
- package/dist/actions/get-card-vault-resource.cjs +1 -1
- package/dist/actions/get-card-vault-resource.cjs.map +1 -1
- package/dist/actions/get-card-vault-resource.d.cts +1 -1
- package/dist/actions/get-card-vault-resource.d.mts +1 -1
- package/dist/actions/get-card-vault-resource.mjs +1 -1
- package/dist/actions/get-card-vault-resource.mjs.map +1 -1
- package/dist/actions/get-card.cjs +5 -5
- package/dist/actions/get-card.cjs.map +1 -1
- package/dist/actions/get-card.d.cts +5 -5
- package/dist/actions/get-card.d.mts +5 -5
- package/dist/actions/get-card.mjs +5 -5
- package/dist/actions/get-card.mjs.map +1 -1
- package/dist/actions/get-custom-field-option.cjs +1 -1
- package/dist/actions/get-custom-field-option.cjs.map +1 -1
- package/dist/actions/get-custom-field-option.d.cts +1 -1
- package/dist/actions/get-custom-field-option.d.mts +1 -1
- package/dist/actions/get-custom-field-option.mjs +1 -1
- package/dist/actions/get-custom-field-option.mjs.map +1 -1
- package/dist/actions/get-department.cjs +1 -1
- package/dist/actions/get-department.cjs.map +1 -1
- package/dist/actions/get-department.d.cts +1 -1
- package/dist/actions/get-department.d.mts +1 -1
- package/dist/actions/get-department.mjs +1 -1
- package/dist/actions/get-department.mjs.map +1 -1
- package/dist/actions/get-inventory-item-field.cjs +1 -1
- package/dist/actions/get-inventory-item-field.cjs.map +1 -1
- package/dist/actions/get-inventory-item-field.d.cts +1 -1
- package/dist/actions/get-inventory-item-field.d.mts +1 -1
- package/dist/actions/get-inventory-item-field.mjs +1 -1
- package/dist/actions/get-inventory-item-field.mjs.map +1 -1
- package/dist/actions/get-memo.cjs +1 -1
- package/dist/actions/get-memo.cjs.map +1 -1
- package/dist/actions/get-memo.d.cts +1 -1
- package/dist/actions/get-memo.d.mts +1 -1
- package/dist/actions/get-memo.mjs +1 -1
- package/dist/actions/get-memo.mjs.map +1 -1
- package/dist/actions/get-reimbursement.cjs +5 -5
- package/dist/actions/get-reimbursement.cjs.map +1 -1
- package/dist/actions/get-reimbursement.d.cts +7 -7
- package/dist/actions/get-reimbursement.d.mts +7 -7
- package/dist/actions/get-reimbursement.mjs +5 -5
- package/dist/actions/get-reimbursement.mjs.map +1 -1
- package/dist/actions/get-spend-limit.cjs +14 -14
- package/dist/actions/get-spend-limit.cjs.map +1 -1
- package/dist/actions/get-spend-limit.d.cts +19 -19
- package/dist/actions/get-spend-limit.d.mts +19 -19
- package/dist/actions/get-spend-limit.mjs +14 -14
- package/dist/actions/get-spend-limit.mjs.map +1 -1
- package/dist/actions/get-statement.cjs +1 -1
- package/dist/actions/get-statement.cjs.map +1 -1
- package/dist/actions/get-statement.d.cts +1 -1
- package/dist/actions/get-statement.d.mts +1 -1
- package/dist/actions/get-statement.mjs +1 -1
- package/dist/actions/get-statement.mjs.map +1 -1
- package/dist/actions/get-transaction.cjs +1 -1
- package/dist/actions/get-transaction.cjs.map +1 -1
- package/dist/actions/get-transaction.d.cts +1 -1
- package/dist/actions/get-transaction.d.mts +1 -1
- package/dist/actions/get-transaction.mjs +1 -1
- package/dist/actions/get-transaction.mjs.map +1 -1
- package/dist/actions/get-user.cjs +2 -2
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +2 -2
- package/dist/actions/get-user.d.mts +2 -2
- package/dist/actions/get-user.mjs +2 -2
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-deferred-status.cjs +3 -3
- 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.mts +3 -3
- package/dist/actions/get-users-deferred-status.mjs +3 -3
- package/dist/actions/get-users-deferred-status.mjs.map +1 -1
- package/dist/actions/get-vendor.cjs +3 -3
- package/dist/actions/get-vendor.cjs.map +1 -1
- package/dist/actions/get-vendor.d.cts +6 -6
- package/dist/actions/get-vendor.d.mts +6 -6
- package/dist/actions/get-vendor.mjs +3 -3
- package/dist/actions/get-vendor.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +1 -1
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +1 -1
- package/dist/actions/get-webhook.d.mts +1 -1
- package/dist/actions/get-webhook.mjs +1 -1
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/issue-virtual-card.cjs +3 -3
- package/dist/actions/issue-virtual-card.cjs.map +1 -1
- package/dist/actions/issue-virtual-card.d.cts +3 -3
- package/dist/actions/issue-virtual-card.d.mts +3 -3
- package/dist/actions/issue-virtual-card.mjs +3 -3
- package/dist/actions/issue-virtual-card.mjs.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.cjs +3 -3
- package/dist/actions/list-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.d.cts +3 -3
- package/dist/actions/list-accounting-inventory-item-options.d.mts +3 -3
- package/dist/actions/list-accounting-inventory-item-options.mjs +3 -3
- package/dist/actions/list-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/list-accounting-tax-rates.cjs +3 -3
- package/dist/actions/list-accounting-tax-rates.cjs.map +1 -1
- package/dist/actions/list-accounting-tax-rates.d.cts +3 -3
- package/dist/actions/list-accounting-tax-rates.d.mts +3 -3
- package/dist/actions/list-accounting-tax-rates.mjs +3 -3
- package/dist/actions/list-accounting-tax-rates.mjs.map +1 -1
- package/dist/actions/list-cards.cjs +7 -7
- package/dist/actions/list-cards.cjs.map +1 -1
- package/dist/actions/list-cards.d.cts +7 -7
- package/dist/actions/list-cards.d.mts +7 -7
- package/dist/actions/list-cards.mjs +7 -7
- package/dist/actions/list-cards.mjs.map +1 -1
- package/dist/actions/list-departments.cjs +3 -3
- package/dist/actions/list-departments.cjs.map +1 -1
- package/dist/actions/list-departments.d.cts +3 -3
- package/dist/actions/list-departments.d.mts +3 -3
- package/dist/actions/list-departments.mjs +3 -3
- package/dist/actions/list-departments.mjs.map +1 -1
- package/dist/actions/list-memos.cjs +3 -3
- package/dist/actions/list-memos.cjs.map +1 -1
- package/dist/actions/list-memos.d.cts +3 -3
- package/dist/actions/list-memos.d.mts +3 -3
- package/dist/actions/list-memos.mjs +3 -3
- package/dist/actions/list-memos.mjs.map +1 -1
- package/dist/actions/list-reimbursements.cjs +7 -7
- package/dist/actions/list-reimbursements.cjs.map +1 -1
- package/dist/actions/list-reimbursements.d.cts +9 -9
- package/dist/actions/list-reimbursements.d.mts +9 -9
- package/dist/actions/list-reimbursements.mjs +7 -7
- package/dist/actions/list-reimbursements.mjs.map +1 -1
- package/dist/actions/list-statements.cjs +6 -6
- package/dist/actions/list-statements.cjs.map +1 -1
- package/dist/actions/list-statements.d.cts +15 -15
- package/dist/actions/list-statements.d.mts +15 -15
- package/dist/actions/list-statements.mjs +6 -6
- package/dist/actions/list-statements.mjs.map +1 -1
- package/dist/actions/list-users.cjs +4 -4
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +4 -4
- package/dist/actions/list-users.d.mts +4 -4
- package/dist/actions/list-users.mjs +4 -4
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-vendors-accounts.cjs +3 -3
- package/dist/actions/list-vendors-accounts.cjs.map +1 -1
- package/dist/actions/list-vendors-accounts.d.cts +3 -3
- package/dist/actions/list-vendors-accounts.d.mts +3 -3
- package/dist/actions/list-vendors-accounts.mjs +3 -3
- package/dist/actions/list-vendors-accounts.mjs.map +1 -1
- package/dist/actions/list-vendors-contacts.cjs +3 -3
- package/dist/actions/list-vendors-contacts.cjs.map +1 -1
- package/dist/actions/list-vendors-contacts.d.cts +3 -3
- package/dist/actions/list-vendors-contacts.d.mts +3 -3
- package/dist/actions/list-vendors-contacts.mjs +3 -3
- package/dist/actions/list-vendors-contacts.mjs.map +1 -1
- package/dist/actions/list-vendors-credits.cjs +9 -9
- package/dist/actions/list-vendors-credits.cjs.map +1 -1
- package/dist/actions/list-vendors-credits.d.cts +21 -21
- package/dist/actions/list-vendors-credits.d.mts +21 -21
- package/dist/actions/list-vendors-credits.mjs +9 -9
- package/dist/actions/list-vendors-credits.mjs.map +1 -1
- package/dist/actions/list-vendors.cjs +5 -5
- package/dist/actions/list-vendors.cjs.map +1 -1
- package/dist/actions/list-vendors.d.cts +6 -6
- package/dist/actions/list-vendors.d.mts +6 -6
- package/dist/actions/list-vendors.mjs +5 -5
- package/dist/actions/list-vendors.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +2 -2
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +2 -2
- package/dist/actions/list-webhooks.d.mts +2 -2
- package/dist/actions/list-webhooks.mjs +2 -2
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.cjs +3 -3
- 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.mts +3 -3
- package/dist/actions/options-for-custom-accounting-field.mjs +3 -3
- package/dist/actions/options-for-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/patch-accounting-connection.cjs +2 -2
- package/dist/actions/patch-accounting-connection.cjs.map +1 -1
- package/dist/actions/patch-accounting-connection.d.cts +2 -2
- package/dist/actions/patch-accounting-connection.d.mts +2 -2
- package/dist/actions/patch-accounting-connection.mjs +2 -2
- package/dist/actions/patch-accounting-connection.mjs.map +1 -1
- package/dist/actions/patch-card-resource.cjs +1 -1
- package/dist/actions/patch-card-resource.cjs.map +1 -1
- package/dist/actions/patch-card-resource.d.cts +1 -1
- package/dist/actions/patch-card-resource.d.mts +1 -1
- package/dist/actions/patch-card-resource.mjs +1 -1
- package/dist/actions/patch-card-resource.mjs.map +1 -1
- package/dist/actions/patch-custom-field-option.cjs +1 -1
- package/dist/actions/patch-custom-field-option.cjs.map +1 -1
- package/dist/actions/patch-custom-field-option.d.cts +1 -1
- package/dist/actions/patch-custom-field-option.d.mts +1 -1
- package/dist/actions/patch-custom-field-option.mjs +1 -1
- package/dist/actions/patch-custom-field-option.mjs.map +1 -1
- package/dist/actions/patch-gl-account-resource.cjs +2 -2
- package/dist/actions/patch-gl-account-resource.cjs.map +1 -1
- package/dist/actions/patch-gl-account-resource.d.cts +2 -2
- package/dist/actions/patch-gl-account-resource.d.mts +2 -2
- package/dist/actions/patch-gl-account-resource.mjs +2 -2
- package/dist/actions/patch-gl-account-resource.mjs.map +1 -1
- package/dist/actions/patch-inventory-item-field.cjs +1 -1
- package/dist/actions/patch-inventory-item-field.cjs.map +1 -1
- package/dist/actions/patch-inventory-item-field.d.cts +1 -1
- package/dist/actions/patch-inventory-item-field.d.mts +1 -1
- package/dist/actions/patch-inventory-item-field.mjs +1 -1
- package/dist/actions/patch-inventory-item-field.mjs.map +1 -1
- package/dist/actions/post-accounting-accounts.cjs +4 -4
- package/dist/actions/post-accounting-accounts.cjs.map +1 -1
- package/dist/actions/post-accounting-accounts.d.cts +5 -4
- package/dist/actions/post-accounting-accounts.d.mts +5 -4
- package/dist/actions/post-accounting-accounts.mjs +4 -4
- package/dist/actions/post-accounting-accounts.mjs.map +1 -1
- package/dist/actions/post-accounting-connection.cjs +2 -2
- package/dist/actions/post-accounting-connection.cjs.map +1 -1
- package/dist/actions/post-accounting-connection.d.cts +2 -2
- package/dist/actions/post-accounting-connection.d.mts +2 -2
- package/dist/actions/post-accounting-connection.mjs +2 -2
- package/dist/actions/post-accounting-connection.mjs.map +1 -1
- package/dist/actions/post-accounting-vendors.cjs +4 -4
- package/dist/actions/post-accounting-vendors.cjs.map +1 -1
- package/dist/actions/post-accounting-vendors.d.cts +5 -4
- package/dist/actions/post-accounting-vendors.d.mts +5 -4
- package/dist/actions/post-accounting-vendors.mjs +4 -4
- package/dist/actions/post-accounting-vendors.mjs.map +1 -1
- package/dist/actions/post-inventory-item-options.cjs +3 -3
- package/dist/actions/post-inventory-item-options.cjs.map +1 -1
- package/dist/actions/post-inventory-item-options.d.cts +4 -3
- package/dist/actions/post-inventory-item-options.d.mts +4 -3
- package/dist/actions/post-inventory-item-options.mjs +3 -3
- package/dist/actions/post-inventory-item-options.mjs.map +1 -1
- package/dist/actions/post-physical-card.cjs +2 -2
- package/dist/actions/post-physical-card.cjs.map +1 -1
- package/dist/actions/post-physical-card.d.cts +3 -3
- package/dist/actions/post-physical-card.d.mts +3 -3
- package/dist/actions/post-physical-card.mjs +2 -2
- package/dist/actions/post-physical-card.mjs.map +1 -1
- package/dist/actions/reactivate-accounting-connection.cjs +2 -2
- package/dist/actions/reactivate-accounting-connection.cjs.map +1 -1
- package/dist/actions/reactivate-accounting-connection.d.cts +2 -2
- package/dist/actions/reactivate-accounting-connection.d.mts +2 -2
- package/dist/actions/reactivate-accounting-connection.mjs +2 -2
- package/dist/actions/reactivate-accounting-connection.mjs.map +1 -1
- package/dist/actions/reactivate-user.cjs +1 -1
- package/dist/actions/reactivate-user.cjs.map +1 -1
- package/dist/actions/reactivate-user.d.cts +1 -1
- package/dist/actions/reactivate-user.d.cts.map +1 -1
- package/dist/actions/reactivate-user.d.mts +1 -1
- package/dist/actions/reactivate-user.d.mts.map +1 -1
- package/dist/actions/reactivate-user.mjs +1 -1
- package/dist/actions/reactivate-user.mjs.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.cjs +9 -9
- package/dist/actions/submit-reimbursement-receipt.cjs.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.d.cts +13 -13
- package/dist/actions/submit-reimbursement-receipt.d.mts +13 -13
- package/dist/actions/submit-reimbursement-receipt.mjs +9 -9
- package/dist/actions/submit-reimbursement-receipt.mjs.map +1 -1
- package/dist/actions/suspend-card.cjs +1 -1
- package/dist/actions/suspend-card.cjs.map +1 -1
- package/dist/actions/suspend-card.d.cts +1 -1
- package/dist/actions/suspend-card.d.mts +1 -1
- package/dist/actions/suspend-card.mjs +1 -1
- package/dist/actions/suspend-card.mjs.map +1 -1
- package/dist/actions/terminate-card.cjs +1 -1
- package/dist/actions/terminate-card.cjs.map +1 -1
- package/dist/actions/terminate-card.d.cts +1 -1
- package/dist/actions/terminate-card.d.mts +1 -1
- package/dist/actions/terminate-card.mjs +1 -1
- package/dist/actions/terminate-card.mjs.map +1 -1
- package/dist/actions/update-accounting-field.cjs +1 -1
- package/dist/actions/update-accounting-field.cjs.map +1 -1
- package/dist/actions/update-accounting-field.d.cts +1 -1
- package/dist/actions/update-accounting-field.d.mts +1 -1
- package/dist/actions/update-accounting-field.mjs +1 -1
- package/dist/actions/update-accounting-field.mjs.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.cjs +1 -1
- package/dist/actions/update-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.d.cts +1 -1
- package/dist/actions/update-accounting-inventory-item-options.d.mts +1 -1
- package/dist/actions/update-accounting-inventory-item-options.mjs +1 -1
- package/dist/actions/update-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.cjs +1 -1
- package/dist/actions/update-accounting-tax-code-options.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.d.cts +1 -1
- package/dist/actions/update-accounting-tax-code-options.d.mts +1 -1
- package/dist/actions/update-accounting-tax-code-options.mjs +1 -1
- package/dist/actions/update-accounting-tax-code-options.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-code.cjs +1 -1
- package/dist/actions/update-accounting-tax-code.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-code.d.cts +1 -1
- package/dist/actions/update-accounting-tax-code.d.mts +1 -1
- package/dist/actions/update-accounting-tax-code.mjs +1 -1
- package/dist/actions/update-accounting-tax-code.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-rate.cjs +1 -1
- package/dist/actions/update-accounting-tax-rate.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-rate.d.cts +1 -1
- package/dist/actions/update-accounting-tax-rate.d.mts +1 -1
- package/dist/actions/update-accounting-tax-rate.mjs +1 -1
- package/dist/actions/update-accounting-tax-rate.mjs.map +1 -1
- package/dist/actions/update-accounting-vendor.cjs +2 -2
- package/dist/actions/update-accounting-vendor.cjs.map +1 -1
- package/dist/actions/update-accounting-vendor.d.cts +2 -2
- package/dist/actions/update-accounting-vendor.d.mts +2 -2
- package/dist/actions/update-accounting-vendor.mjs +2 -2
- package/dist/actions/update-accounting-vendor.mjs.map +1 -1
- package/dist/actions/update-card-limit.cjs +4 -4
- package/dist/actions/update-card-limit.cjs.map +1 -1
- package/dist/actions/update-card-limit.d.cts +4 -4
- package/dist/actions/update-card-limit.d.mts +4 -4
- package/dist/actions/update-card-limit.mjs +4 -4
- package/dist/actions/update-card-limit.mjs.map +1 -1
- package/dist/actions/update-department.cjs +1 -1
- package/dist/actions/update-department.cjs.map +1 -1
- package/dist/actions/update-department.d.cts +1 -1
- package/dist/actions/update-department.d.mts +1 -1
- package/dist/actions/update-department.mjs +1 -1
- package/dist/actions/update-department.mjs.map +1 -1
- package/dist/actions/update-limits.cjs +9 -9
- package/dist/actions/update-limits.cjs.map +1 -1
- package/dist/actions/update-limits.d.cts +15 -14
- package/dist/actions/update-limits.d.mts +15 -14
- package/dist/actions/update-limits.mjs +9 -9
- package/dist/actions/update-limits.mjs.map +1 -1
- package/dist/actions/update-user.cjs +1 -1
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +1 -1
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +1 -1
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs +1 -1
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/actions/upload-new-options.cjs +3 -3
- package/dist/actions/upload-new-options.cjs.map +1 -1
- package/dist/actions/upload-new-options.d.cts +4 -3
- package/dist/actions/upload-new-options.d.mts +4 -3
- package/dist/actions/upload-new-options.mjs +3 -3
- package/dist/actions/upload-new-options.mjs.map +1 -1
- package/dist/actions/upload-tax-code-options.cjs +3 -3
- package/dist/actions/upload-tax-code-options.cjs.map +1 -1
- package/dist/actions/upload-tax-code-options.d.cts +4 -3
- package/dist/actions/upload-tax-code-options.d.mts +4 -3
- package/dist/actions/upload-tax-code-options.mjs +3 -3
- package/dist/actions/upload-tax-code-options.mjs.map +1 -1
- package/dist/actions/upload-tax-rates.cjs +3 -3
- package/dist/actions/upload-tax-rates.cjs.map +1 -1
- package/dist/actions/upload-tax-rates.d.cts +4 -3
- package/dist/actions/upload-tax-rates.d.mts +4 -3
- package/dist/actions/upload-tax-rates.mjs +3 -3
- package/dist/actions/upload-tax-rates.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -25,24 +25,24 @@ const RampListReimbursementsInput = zod.z.object({
|
|
|
25
25
|
const RampListReimbursements_LineItemAmountSchema = zod.z.object({
|
|
26
26
|
amount: zod.z.number().describe("Numeric value of the line item amount").nullable().optional(),
|
|
27
27
|
currency_code: zod.z.string().describe("Currency code for the line item").nullable().optional()
|
|
28
|
-
}).describe("Amount object for a line item.");
|
|
28
|
+
}).passthrough().describe("Amount object for a line item.");
|
|
29
29
|
const RampListReimbursements_CategoryInfoSchema = zod.z.object({
|
|
30
30
|
id: zod.z.string().describe("Internal identifier for the category").nullable().optional(),
|
|
31
31
|
name: zod.z.string().describe("Name of the category").nullable().optional(),
|
|
32
32
|
type: zod.z.string().describe("Type of accounting field (e.g., GL_ACCOUNT, Subsidiary)").nullable().optional(),
|
|
33
33
|
external_id: zod.z.string().describe("External identifier for the category").nullable().optional()
|
|
34
|
-
}).describe("Category information for an accounting field.");
|
|
34
|
+
}).passthrough().describe("Category information for an accounting field.");
|
|
35
35
|
const RampListReimbursements_AccountingFieldSelectionSchema = zod.z.object({
|
|
36
36
|
id: zod.z.string().describe("Internal identifier for the accounting field selection").nullable().optional(),
|
|
37
37
|
name: zod.z.string().describe("Name of the accounting field selection").nullable().optional(),
|
|
38
38
|
type: zod.z.string().describe("Type of the accounting field selection").nullable().optional(),
|
|
39
39
|
external_id: zod.z.string().describe("External identifier for the accounting field selection").nullable().optional(),
|
|
40
40
|
category_info: RampListReimbursements_CategoryInfoSchema.nullable().optional()
|
|
41
|
-
}).describe("Accounting field selection with category information.");
|
|
41
|
+
}).passthrough().describe("Accounting field selection with category information.");
|
|
42
42
|
const RampListReimbursements_LineItemSchema = zod.z.object({
|
|
43
43
|
amount: RampListReimbursements_LineItemAmountSchema.nullable().optional(),
|
|
44
44
|
accounting_field_selections: zod.z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe("Accounting field selections for this line item").nullable().optional()
|
|
45
|
-
}).describe("Individual line item within a reimbursement.");
|
|
45
|
+
}).passthrough().describe("Individual line item within a reimbursement.");
|
|
46
46
|
const RampListReimbursements_ReimbursementSchema = zod.z.object({
|
|
47
47
|
id: zod.z.string().describe("Unique identifier for the reimbursement").nullable(),
|
|
48
48
|
state: zod.z.string().describe("Current state of the reimbursement (e.g., PENDING, APPROVED, DECLINED, PAID)").nullable().optional(),
|
|
@@ -58,12 +58,12 @@ const RampListReimbursements_ReimbursementSchema = zod.z.object({
|
|
|
58
58
|
line_items: zod.z.array(RampListReimbursements_LineItemSchema).describe("Array of individual line items within the reimbursement").nullable().optional(),
|
|
59
59
|
transaction_date: zod.z.string().describe("Date when the transaction took place (ISO 8601 format)").nullable().optional(),
|
|
60
60
|
accounting_field_selections: zod.z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe("Array of accounting field objects with category information").nullable().optional()
|
|
61
|
-
}).describe("A reimbursement object with all associated details.");
|
|
62
|
-
const RampListReimbursements_PageSchema = zod.z.object({ next: zod.z.string().describe("Token or URL for retrieving the next page of results").nullable().optional() }).describe("Pagination information for the response.");
|
|
61
|
+
}).passthrough().describe("A reimbursement object with all associated details.");
|
|
62
|
+
const RampListReimbursements_PageSchema = zod.z.object({ next: zod.z.string().describe("Token or URL for retrieving the next page of results").nullable().optional() }).passthrough().describe("Pagination information for the response.");
|
|
63
63
|
const RampListReimbursementsOutput = zod.z.object({
|
|
64
64
|
data: zod.z.array(RampListReimbursements_ReimbursementSchema).describe("Array of reimbursement objects"),
|
|
65
65
|
page: RampListReimbursements_PageSchema.nullable().optional()
|
|
66
|
-
}).describe("Response containing a list of reimbursements with pagination.");
|
|
66
|
+
}).passthrough().describe("Response containing a list of reimbursements with pagination.");
|
|
67
67
|
const rampListReimbursements = require_action.action("RAMP_LIST_REIMBURSEMENTS", {
|
|
68
68
|
slug: "ramp-list-reimbursements",
|
|
69
69
|
name: "List Reimbursements",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-reimbursements.cjs","names":["z","action"],"sources":["../../src/actions/list-reimbursements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampListReimbursementsInput = z.object({\n start: z.string().describe(\"ID of the last entity of the previous page for pagination\").optional(),\n to_date: z.string().describe(\"Filter reimbursements created before this date (ISO 8601 datetime)\").optional(),\n trip_id: z.string().describe(\"Filter reimbursements associated with a specific trip UUID\").optional(),\n user_id: z.string().describe(\"Filter by user UUID\").optional(),\n direction: z.string().describe(\"Filter by direction (BUSINESS_TO_USER default, USER_TO_BUSINESS for repayments)\").optional(),\n entity_id: z.string().describe(\"Filter reimbursements by business entity UUID\").optional(),\n from_date: z.string().describe(\"Filter reimbursements created after this date (ISO 8601 datetime)\").optional(),\n page_size: z.number().int().default(20).describe(\"Number of results per page (2-100, default: 20)\").optional(),\n sync_ready: z.boolean().describe(\"Filter reimbursements that are ready to sync to ERP systems\").optional(),\n sync_status: z.string().describe(\"Filter by sync status. Supersedes has_no_sync_commits and sync_ready\").optional(),\n synced_after: z.string().describe(\"Filter reimbursements synced after this date (ISO 8601 datetime)\").optional(),\n updated_after: z.string().describe(\"Filter reimbursements updated after this date (ISO 8601 datetime)\").optional(),\n to_submitted_at: z.string().describe(\"Filter reimbursements submitted before this date (ISO 8601 datetime)\").optional(),\n from_submitted_at: z.string().describe(\"Filter reimbursements submitted after this date (ISO 8601 datetime)\").optional(),\n has_no_sync_commits: z.boolean().describe(\"Filter reimbursements that haven't been synced to ERP systems\").optional(),\n to_transaction_date: z.string().describe(\"Filter by underlying transaction date (before this date, ISO 8601 datetime)\").optional(),\n from_transaction_date: z.string().describe(\"Filter by underlying transaction date (after this date, ISO 8601 datetime)\").optional(),\n awaiting_approval_by_user_id: z.string().describe(\"Filter for reimbursements awaiting approval by a specific user UUID\").optional(),\n accounting_field_selection_id: z.string().describe(\"Filter reimbursements by accounting field selection UUID\").optional(),\n});\nconst RampListReimbursements_LineItemAmountSchema = z.object({\n amount: z.number().describe(\"Numeric value of the line item amount\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code for the line item\").nullable().optional(),\n}).describe(\"Amount object for a line item.\");\nconst RampListReimbursements_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}).describe(\"Category information for an accounting field.\");\nconst RampListReimbursements_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 external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampListReimbursements_CategoryInfoSchema.nullable().optional(),\n}).describe(\"Accounting field selection with category information.\");\nconst RampListReimbursements_LineItemSchema = z.object({\n amount: RampListReimbursements_LineItemAmountSchema.nullable().optional(),\n accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\").nullable().optional(),\n}).describe(\"Individual line item within a reimbursement.\");\nconst RampListReimbursements_ReimbursementSchema = z.object({\n id: z.string().describe(\"Unique identifier for the reimbursement\").nullable(),\n state: z.string().describe(\"Current state of the reimbursement (e.g., PENDING, APPROVED, DECLINED, PAID)\").nullable().optional(),\n amount: z.number().describe(\"Numeric value representing the reimbursement amount\").nullable(),\n user_id: z.string().describe(\"Identifier for the user who submitted the reimbursement\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR)\").nullable(),\n distance: z.number().describe(\"Distance for mileage reimbursements\").nullable().optional(),\n merchant: z.string().describe(\"Name of the merchant where expense occurred\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"Collection of receipt identifiers or references\"),\n direction: z.string().describe(\"Direction of payment (e.g., BUSINESS_TO_USER)\").nullable().optional(),\n entity_id: z.string().describe(\"Entity identifier for multi-entity organizations\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp indicating when the reimbursement was created (ISO 8601 format)\").nullable().optional(),\n line_items: z.array(RampListReimbursements_LineItemSchema).describe(\"Array of individual line items within the reimbursement\").nullable().optional(),\n transaction_date: z.string().describe(\"Date when the transaction took place (ISO 8601 format)\").nullable().optional(),\n accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe(\"Array of accounting field objects with category information\").nullable().optional(),\n}).describe(\"A reimbursement object with all associated details.\");\nconst RampListReimbursements_PageSchema = z.object({\n next: z.string().describe(\"Token or URL for retrieving the next page of results\").nullable().optional(),\n}).describe(\"Pagination information for the response.\");\nexport const RampListReimbursementsOutput = z.object({\n data: z.array(RampListReimbursements_ReimbursementSchema).describe(\"Array of reimbursement objects\"),\n page: RampListReimbursements_PageSchema.nullable().optional(),\n}).describe(\"Response containing a list of reimbursements with pagination.\");\n\nexport const rampListReimbursements = action(\"RAMP_LIST_REIMBURSEMENTS\", {\n slug: \"ramp-list-reimbursements\",\n name: \"List Reimbursements\",\n description: \"Tool for listing reimbursements with comprehensive filtering options. Returns reimbursement details including amounts, status, sync information, and associated entities. Use this to analyze reimbursement patterns, track approval workflows, and manage expense reimbursements.\",\n input: RampListReimbursementsInput,\n output: RampListReimbursementsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAA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CAAC,SAAS,CAAC,CAAC,SAAS;AAC1L,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO,EACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACnG,MAAM,kCAAkC,SAAS,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"list-reimbursements.cjs","names":["z","action"],"sources":["../../src/actions/list-reimbursements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampListReimbursementsInput = z.object({\n start: z.string().describe(\"ID of the last entity of the previous page for pagination\").optional(),\n to_date: z.string().describe(\"Filter reimbursements created before this date (ISO 8601 datetime)\").optional(),\n trip_id: z.string().describe(\"Filter reimbursements associated with a specific trip UUID\").optional(),\n user_id: z.string().describe(\"Filter by user UUID\").optional(),\n direction: z.string().describe(\"Filter by direction (BUSINESS_TO_USER default, USER_TO_BUSINESS for repayments)\").optional(),\n entity_id: z.string().describe(\"Filter reimbursements by business entity UUID\").optional(),\n from_date: z.string().describe(\"Filter reimbursements created after this date (ISO 8601 datetime)\").optional(),\n page_size: z.number().int().default(20).describe(\"Number of results per page (2-100, default: 20)\").optional(),\n sync_ready: z.boolean().describe(\"Filter reimbursements that are ready to sync to ERP systems\").optional(),\n sync_status: z.string().describe(\"Filter by sync status. Supersedes has_no_sync_commits and sync_ready\").optional(),\n synced_after: z.string().describe(\"Filter reimbursements synced after this date (ISO 8601 datetime)\").optional(),\n updated_after: z.string().describe(\"Filter reimbursements updated after this date (ISO 8601 datetime)\").optional(),\n to_submitted_at: z.string().describe(\"Filter reimbursements submitted before this date (ISO 8601 datetime)\").optional(),\n from_submitted_at: z.string().describe(\"Filter reimbursements submitted after this date (ISO 8601 datetime)\").optional(),\n has_no_sync_commits: z.boolean().describe(\"Filter reimbursements that haven't been synced to ERP systems\").optional(),\n to_transaction_date: z.string().describe(\"Filter by underlying transaction date (before this date, ISO 8601 datetime)\").optional(),\n from_transaction_date: z.string().describe(\"Filter by underlying transaction date (after this date, ISO 8601 datetime)\").optional(),\n awaiting_approval_by_user_id: z.string().describe(\"Filter for reimbursements awaiting approval by a specific user UUID\").optional(),\n accounting_field_selection_id: z.string().describe(\"Filter reimbursements by accounting field selection UUID\").optional(),\n});\nconst RampListReimbursements_LineItemAmountSchema = z.object({\n amount: z.number().describe(\"Numeric value of the line item amount\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code for the line item\").nullable().optional(),\n}).passthrough().describe(\"Amount object for a line item.\");\nconst RampListReimbursements_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 RampListReimbursements_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 external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampListReimbursements_CategoryInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Accounting field selection with category information.\");\nconst RampListReimbursements_LineItemSchema = z.object({\n amount: RampListReimbursements_LineItemAmountSchema.nullable().optional(),\n accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\").nullable().optional(),\n}).passthrough().describe(\"Individual line item within a reimbursement.\");\nconst RampListReimbursements_ReimbursementSchema = z.object({\n id: z.string().describe(\"Unique identifier for the reimbursement\").nullable(),\n state: z.string().describe(\"Current state of the reimbursement (e.g., PENDING, APPROVED, DECLINED, PAID)\").nullable().optional(),\n amount: z.number().describe(\"Numeric value representing the reimbursement amount\").nullable(),\n user_id: z.string().describe(\"Identifier for the user who submitted the reimbursement\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR)\").nullable(),\n distance: z.number().describe(\"Distance for mileage reimbursements\").nullable().optional(),\n merchant: z.string().describe(\"Name of the merchant where expense occurred\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"Collection of receipt identifiers or references\"),\n direction: z.string().describe(\"Direction of payment (e.g., BUSINESS_TO_USER)\").nullable().optional(),\n entity_id: z.string().describe(\"Entity identifier for multi-entity organizations\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp indicating when the reimbursement was created (ISO 8601 format)\").nullable().optional(),\n line_items: z.array(RampListReimbursements_LineItemSchema).describe(\"Array of individual line items within the reimbursement\").nullable().optional(),\n transaction_date: z.string().describe(\"Date when the transaction took place (ISO 8601 format)\").nullable().optional(),\n accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe(\"Array of accounting field objects with category information\").nullable().optional(),\n}).passthrough().describe(\"A reimbursement object with all associated details.\");\nconst RampListReimbursements_PageSchema = z.object({\n next: z.string().describe(\"Token or URL for retrieving the next page of results\").nullable().optional(),\n}).passthrough().describe(\"Pagination information for the response.\");\nexport const RampListReimbursementsOutput = z.object({\n data: z.array(RampListReimbursements_ReimbursementSchema).describe(\"Array of reimbursement objects\"),\n page: RampListReimbursements_PageSchema.nullable().optional(),\n}).passthrough().describe(\"Response containing a list of reimbursements with pagination.\");\n\nexport const rampListReimbursements = action(\"RAMP_LIST_REIMBURSEMENTS\", {\n slug: \"ramp-list-reimbursements\",\n name: \"List Reimbursements\",\n description: \"Tool for listing reimbursements with comprehensive filtering options. Returns reimbursement details including amounts, status, sync information, and associated entities. Use this to analyze reimbursement patterns, track approval workflows, and manage expense reimbursements.\",\n input: RampListReimbursementsInput,\n output: RampListReimbursementsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7G,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACzG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAClH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC/G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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AAS,0CAA0C;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;CACnG,MAAM,kCAAkC,SAAS,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -39,7 +39,7 @@ declare const RampListReimbursementsOutput: z.ZodObject<{
|
|
|
39
39
|
amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
41
|
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
43
|
accounting_field_selections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
44
44
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -50,9 +50,9 @@ declare const RampListReimbursementsOutput: z.ZodObject<{
|
|
|
50
50
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
52
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
-
}, z.core.$
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
|
+
}, z.core.$loose>>>>;
|
|
56
56
|
transaction_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
57
|
accounting_field_selections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
58
58
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -64,13 +64,13 @@ declare const RampListReimbursementsOutput: z.ZodObject<{
|
|
|
64
64
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
65
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
66
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
-
}, z.core.$
|
|
68
|
-
}, z.core.$
|
|
69
|
-
}, z.core.$
|
|
67
|
+
}, z.core.$loose>>>;
|
|
68
|
+
}, z.core.$loose>>>>;
|
|
69
|
+
}, z.core.$loose>>;
|
|
70
70
|
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
71
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
}, z.core.$
|
|
73
|
-
}, z.core.$
|
|
72
|
+
}, z.core.$loose>>>;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
74
|
declare const rampListReimbursements: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
75
75
|
start?: string | undefined;
|
|
76
76
|
to_date?: string | undefined;
|
|
@@ -39,7 +39,7 @@ declare const RampListReimbursementsOutput: z.ZodObject<{
|
|
|
39
39
|
amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
40
|
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
41
|
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>>;
|
|
43
43
|
accounting_field_selections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
44
44
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -50,9 +50,9 @@ declare const RampListReimbursementsOutput: z.ZodObject<{
|
|
|
50
50
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
51
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
52
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
-
}, z.core.$
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
|
+
}, z.core.$loose>>>>;
|
|
55
|
+
}, z.core.$loose>>>>;
|
|
56
56
|
transaction_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
57
|
accounting_field_selections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
58
58
|
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -64,13 +64,13 @@ declare const RampListReimbursementsOutput: z.ZodObject<{
|
|
|
64
64
|
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
65
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
66
|
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
-
}, z.core.$
|
|
68
|
-
}, z.core.$
|
|
69
|
-
}, z.core.$
|
|
67
|
+
}, z.core.$loose>>>;
|
|
68
|
+
}, z.core.$loose>>>>;
|
|
69
|
+
}, z.core.$loose>>;
|
|
70
70
|
page: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
71
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
72
|
-
}, z.core.$
|
|
73
|
-
}, z.core.$
|
|
72
|
+
}, z.core.$loose>>>;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
74
|
declare const rampListReimbursements: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
75
75
|
start?: string | undefined;
|
|
76
76
|
to_date?: string | undefined;
|
|
@@ -25,24 +25,24 @@ const RampListReimbursementsInput = z.object({
|
|
|
25
25
|
const RampListReimbursements_LineItemAmountSchema = z.object({
|
|
26
26
|
amount: z.number().describe("Numeric value of the line item amount").nullable().optional(),
|
|
27
27
|
currency_code: z.string().describe("Currency code for the line item").nullable().optional()
|
|
28
|
-
}).describe("Amount object for a line item.");
|
|
28
|
+
}).passthrough().describe("Amount object for a line item.");
|
|
29
29
|
const RampListReimbursements_CategoryInfoSchema = z.object({
|
|
30
30
|
id: z.string().describe("Internal identifier for the category").nullable().optional(),
|
|
31
31
|
name: z.string().describe("Name of the category").nullable().optional(),
|
|
32
32
|
type: z.string().describe("Type of accounting field (e.g., GL_ACCOUNT, Subsidiary)").nullable().optional(),
|
|
33
33
|
external_id: z.string().describe("External identifier for the category").nullable().optional()
|
|
34
|
-
}).describe("Category information for an accounting field.");
|
|
34
|
+
}).passthrough().describe("Category information for an accounting field.");
|
|
35
35
|
const RampListReimbursements_AccountingFieldSelectionSchema = z.object({
|
|
36
36
|
id: z.string().describe("Internal identifier for the accounting field selection").nullable().optional(),
|
|
37
37
|
name: z.string().describe("Name of the accounting field selection").nullable().optional(),
|
|
38
38
|
type: z.string().describe("Type of the accounting field selection").nullable().optional(),
|
|
39
39
|
external_id: z.string().describe("External identifier for the accounting field selection").nullable().optional(),
|
|
40
40
|
category_info: RampListReimbursements_CategoryInfoSchema.nullable().optional()
|
|
41
|
-
}).describe("Accounting field selection with category information.");
|
|
41
|
+
}).passthrough().describe("Accounting field selection with category information.");
|
|
42
42
|
const RampListReimbursements_LineItemSchema = z.object({
|
|
43
43
|
amount: RampListReimbursements_LineItemAmountSchema.nullable().optional(),
|
|
44
44
|
accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe("Accounting field selections for this line item").nullable().optional()
|
|
45
|
-
}).describe("Individual line item within a reimbursement.");
|
|
45
|
+
}).passthrough().describe("Individual line item within a reimbursement.");
|
|
46
46
|
const RampListReimbursements_ReimbursementSchema = z.object({
|
|
47
47
|
id: z.string().describe("Unique identifier for the reimbursement").nullable(),
|
|
48
48
|
state: z.string().describe("Current state of the reimbursement (e.g., PENDING, APPROVED, DECLINED, PAID)").nullable().optional(),
|
|
@@ -58,8 +58,8 @@ const RampListReimbursements_ReimbursementSchema = z.object({
|
|
|
58
58
|
line_items: z.array(RampListReimbursements_LineItemSchema).describe("Array of individual line items within the reimbursement").nullable().optional(),
|
|
59
59
|
transaction_date: z.string().describe("Date when the transaction took place (ISO 8601 format)").nullable().optional(),
|
|
60
60
|
accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe("Array of accounting field objects with category information").nullable().optional()
|
|
61
|
-
}).describe("A reimbursement object with all associated details.");
|
|
62
|
-
const RampListReimbursements_PageSchema = z.object({ next: z.string().describe("Token or URL for retrieving the next page of results").nullable().optional() }).describe("Pagination information for the response.");
|
|
61
|
+
}).passthrough().describe("A reimbursement object with all associated details.");
|
|
62
|
+
const RampListReimbursements_PageSchema = z.object({ next: z.string().describe("Token or URL for retrieving the next page of results").nullable().optional() }).passthrough().describe("Pagination information for the response.");
|
|
63
63
|
const rampListReimbursements = action("RAMP_LIST_REIMBURSEMENTS", {
|
|
64
64
|
slug: "ramp-list-reimbursements",
|
|
65
65
|
name: "List Reimbursements",
|
|
@@ -68,7 +68,7 @@ const rampListReimbursements = action("RAMP_LIST_REIMBURSEMENTS", {
|
|
|
68
68
|
output: z.object({
|
|
69
69
|
data: z.array(RampListReimbursements_ReimbursementSchema).describe("Array of reimbursement objects"),
|
|
70
70
|
page: RampListReimbursements_PageSchema.nullable().optional()
|
|
71
|
-
}).describe("Response containing a list of reimbursements with pagination.")
|
|
71
|
+
}).passthrough().describe("Response containing a list of reimbursements with pagination.")
|
|
72
72
|
});
|
|
73
73
|
//#endregion
|
|
74
74
|
export { rampListReimbursements };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-reimbursements.mjs","names":[],"sources":["../../src/actions/list-reimbursements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampListReimbursementsInput = z.object({\n start: z.string().describe(\"ID of the last entity of the previous page for pagination\").optional(),\n to_date: z.string().describe(\"Filter reimbursements created before this date (ISO 8601 datetime)\").optional(),\n trip_id: z.string().describe(\"Filter reimbursements associated with a specific trip UUID\").optional(),\n user_id: z.string().describe(\"Filter by user UUID\").optional(),\n direction: z.string().describe(\"Filter by direction (BUSINESS_TO_USER default, USER_TO_BUSINESS for repayments)\").optional(),\n entity_id: z.string().describe(\"Filter reimbursements by business entity UUID\").optional(),\n from_date: z.string().describe(\"Filter reimbursements created after this date (ISO 8601 datetime)\").optional(),\n page_size: z.number().int().default(20).describe(\"Number of results per page (2-100, default: 20)\").optional(),\n sync_ready: z.boolean().describe(\"Filter reimbursements that are ready to sync to ERP systems\").optional(),\n sync_status: z.string().describe(\"Filter by sync status. Supersedes has_no_sync_commits and sync_ready\").optional(),\n synced_after: z.string().describe(\"Filter reimbursements synced after this date (ISO 8601 datetime)\").optional(),\n updated_after: z.string().describe(\"Filter reimbursements updated after this date (ISO 8601 datetime)\").optional(),\n to_submitted_at: z.string().describe(\"Filter reimbursements submitted before this date (ISO 8601 datetime)\").optional(),\n from_submitted_at: z.string().describe(\"Filter reimbursements submitted after this date (ISO 8601 datetime)\").optional(),\n has_no_sync_commits: z.boolean().describe(\"Filter reimbursements that haven't been synced to ERP systems\").optional(),\n to_transaction_date: z.string().describe(\"Filter by underlying transaction date (before this date, ISO 8601 datetime)\").optional(),\n from_transaction_date: z.string().describe(\"Filter by underlying transaction date (after this date, ISO 8601 datetime)\").optional(),\n awaiting_approval_by_user_id: z.string().describe(\"Filter for reimbursements awaiting approval by a specific user UUID\").optional(),\n accounting_field_selection_id: z.string().describe(\"Filter reimbursements by accounting field selection UUID\").optional(),\n});\nconst RampListReimbursements_LineItemAmountSchema = z.object({\n amount: z.number().describe(\"Numeric value of the line item amount\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code for the line item\").nullable().optional(),\n}).describe(\"Amount object for a line item.\");\nconst RampListReimbursements_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}).describe(\"Category information for an accounting field.\");\nconst RampListReimbursements_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 external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampListReimbursements_CategoryInfoSchema.nullable().optional(),\n}).describe(\"Accounting field selection with category information.\");\nconst RampListReimbursements_LineItemSchema = z.object({\n amount: RampListReimbursements_LineItemAmountSchema.nullable().optional(),\n accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\").nullable().optional(),\n}).describe(\"Individual line item within a reimbursement.\");\nconst RampListReimbursements_ReimbursementSchema = z.object({\n id: z.string().describe(\"Unique identifier for the reimbursement\").nullable(),\n state: z.string().describe(\"Current state of the reimbursement (e.g., PENDING, APPROVED, DECLINED, PAID)\").nullable().optional(),\n amount: z.number().describe(\"Numeric value representing the reimbursement amount\").nullable(),\n user_id: z.string().describe(\"Identifier for the user who submitted the reimbursement\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR)\").nullable(),\n distance: z.number().describe(\"Distance for mileage reimbursements\").nullable().optional(),\n merchant: z.string().describe(\"Name of the merchant where expense occurred\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"Collection of receipt identifiers or references\"),\n direction: z.string().describe(\"Direction of payment (e.g., BUSINESS_TO_USER)\").nullable().optional(),\n entity_id: z.string().describe(\"Entity identifier for multi-entity organizations\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp indicating when the reimbursement was created (ISO 8601 format)\").nullable().optional(),\n line_items: z.array(RampListReimbursements_LineItemSchema).describe(\"Array of individual line items within the reimbursement\").nullable().optional(),\n transaction_date: z.string().describe(\"Date when the transaction took place (ISO 8601 format)\").nullable().optional(),\n accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe(\"Array of accounting field objects with category information\").nullable().optional(),\n}).describe(\"A reimbursement object with all associated details.\");\nconst RampListReimbursements_PageSchema = z.object({\n next: z.string().describe(\"Token or URL for retrieving the next page of results\").nullable().optional(),\n}).describe(\"Pagination information for the response.\");\nexport const RampListReimbursementsOutput = z.object({\n data: z.array(RampListReimbursements_ReimbursementSchema).describe(\"Array of reimbursement objects\"),\n page: RampListReimbursements_PageSchema.nullable().optional(),\n}).describe(\"Response containing a list of reimbursements with pagination.\");\n\nexport const rampListReimbursements = action(\"RAMP_LIST_REIMBURSEMENTS\", {\n slug: \"ramp-list-reimbursements\",\n name: \"List Reimbursements\",\n description: \"Tool for listing reimbursements with comprehensive filtering options. Returns reimbursement details including amounts, status, sync information, and associated entities. Use this to analyze reimbursement patterns, track approval workflows, and manage expense reimbursements.\",\n input: RampListReimbursementsInput,\n output: RampListReimbursementsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC7D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC3H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,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AM,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;EACnG,MAAM,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAC9D,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"list-reimbursements.mjs","names":[],"sources":["../../src/actions/list-reimbursements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampListReimbursementsInput = z.object({\n start: z.string().describe(\"ID of the last entity of the previous page for pagination\").optional(),\n to_date: z.string().describe(\"Filter reimbursements created before this date (ISO 8601 datetime)\").optional(),\n trip_id: z.string().describe(\"Filter reimbursements associated with a specific trip UUID\").optional(),\n user_id: z.string().describe(\"Filter by user UUID\").optional(),\n direction: z.string().describe(\"Filter by direction (BUSINESS_TO_USER default, USER_TO_BUSINESS for repayments)\").optional(),\n entity_id: z.string().describe(\"Filter reimbursements by business entity UUID\").optional(),\n from_date: z.string().describe(\"Filter reimbursements created after this date (ISO 8601 datetime)\").optional(),\n page_size: z.number().int().default(20).describe(\"Number of results per page (2-100, default: 20)\").optional(),\n sync_ready: z.boolean().describe(\"Filter reimbursements that are ready to sync to ERP systems\").optional(),\n sync_status: z.string().describe(\"Filter by sync status. Supersedes has_no_sync_commits and sync_ready\").optional(),\n synced_after: z.string().describe(\"Filter reimbursements synced after this date (ISO 8601 datetime)\").optional(),\n updated_after: z.string().describe(\"Filter reimbursements updated after this date (ISO 8601 datetime)\").optional(),\n to_submitted_at: z.string().describe(\"Filter reimbursements submitted before this date (ISO 8601 datetime)\").optional(),\n from_submitted_at: z.string().describe(\"Filter reimbursements submitted after this date (ISO 8601 datetime)\").optional(),\n has_no_sync_commits: z.boolean().describe(\"Filter reimbursements that haven't been synced to ERP systems\").optional(),\n to_transaction_date: z.string().describe(\"Filter by underlying transaction date (before this date, ISO 8601 datetime)\").optional(),\n from_transaction_date: z.string().describe(\"Filter by underlying transaction date (after this date, ISO 8601 datetime)\").optional(),\n awaiting_approval_by_user_id: z.string().describe(\"Filter for reimbursements awaiting approval by a specific user UUID\").optional(),\n accounting_field_selection_id: z.string().describe(\"Filter reimbursements by accounting field selection UUID\").optional(),\n});\nconst RampListReimbursements_LineItemAmountSchema = z.object({\n amount: z.number().describe(\"Numeric value of the line item amount\").nullable().optional(),\n currency_code: z.string().describe(\"Currency code for the line item\").nullable().optional(),\n}).passthrough().describe(\"Amount object for a line item.\");\nconst RampListReimbursements_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 RampListReimbursements_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 external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampListReimbursements_CategoryInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Accounting field selection with category information.\");\nconst RampListReimbursements_LineItemSchema = z.object({\n amount: RampListReimbursements_LineItemAmountSchema.nullable().optional(),\n accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\").nullable().optional(),\n}).passthrough().describe(\"Individual line item within a reimbursement.\");\nconst RampListReimbursements_ReimbursementSchema = z.object({\n id: z.string().describe(\"Unique identifier for the reimbursement\").nullable(),\n state: z.string().describe(\"Current state of the reimbursement (e.g., PENDING, APPROVED, DECLINED, PAID)\").nullable().optional(),\n amount: z.number().describe(\"Numeric value representing the reimbursement amount\").nullable(),\n user_id: z.string().describe(\"Identifier for the user who submitted the reimbursement\").nullable(),\n currency: z.string().describe(\"Currency code (e.g., USD, EUR)\").nullable(),\n distance: z.number().describe(\"Distance for mileage reimbursements\").nullable().optional(),\n merchant: z.string().describe(\"Name of the merchant where expense occurred\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"Collection of receipt identifiers or references\"),\n direction: z.string().describe(\"Direction of payment (e.g., BUSINESS_TO_USER)\").nullable().optional(),\n entity_id: z.string().describe(\"Entity identifier for multi-entity organizations\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp indicating when the reimbursement was created (ISO 8601 format)\").nullable().optional(),\n line_items: z.array(RampListReimbursements_LineItemSchema).describe(\"Array of individual line items within the reimbursement\").nullable().optional(),\n transaction_date: z.string().describe(\"Date when the transaction took place (ISO 8601 format)\").nullable().optional(),\n accounting_field_selections: z.array(RampListReimbursements_AccountingFieldSelectionSchema).describe(\"Array of accounting field objects with category information\").nullable().optional(),\n}).passthrough().describe(\"A reimbursement object with all associated details.\");\nconst RampListReimbursements_PageSchema = z.object({\n next: z.string().describe(\"Token or URL for retrieving the next page of results\").nullable().optional(),\n}).passthrough().describe(\"Pagination information for the response.\");\nexport const RampListReimbursementsOutput = z.object({\n data: z.array(RampListReimbursements_ReimbursementSchema).describe(\"Array of reimbursement objects\"),\n page: RampListReimbursements_PageSchema.nullable().optional(),\n}).passthrough().describe(\"Response containing a list of reimbursements with pagination.\");\n\nexport const rampListReimbursements = action(\"RAMP_LIST_REIMBURSEMENTS\", {\n slug: \"ramp-list-reimbursements\",\n name: \"List Reimbursements\",\n description: \"Tool for listing reimbursements with comprehensive filtering options. Returns reimbursement details including amounts, status, sync information, and associated entities. Use this to analyze reimbursement patterns, track approval workflows, and manage expense reimbursements.\",\n input: RampListReimbursementsInput,\n output: RampListReimbursementsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC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O,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,6BAA6B,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,oCAAoC,EAAE,OAAO,EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAMpE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gCAAgC;EACnG,MAAM,kCAAkC,SAAS,CAAC,CAAC,SAAS;CAC9D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
|
|
@@ -11,13 +11,13 @@ const RampListStatements_MoneySchema = zod.z.object({
|
|
|
11
11
|
amount: zod.z.number().int().describe("Amount in minor units (e.g., cents for USD)").nullable(),
|
|
12
12
|
currency_code: zod.z.string().describe("ISO 4217 currency code (e.g., 'USD')").nullable(),
|
|
13
13
|
minor_unit_conversion_rate: zod.z.number().int().describe("Conversion rate from minor to major units (e.g., 100 for USD)").nullable()
|
|
14
|
-
}).describe("Represents a monetary amount with currency information.");
|
|
14
|
+
}).passthrough().describe("Represents a monetary amount with currency information.");
|
|
15
15
|
const RampListStatements_StatementLineSchema = zod.z.object({
|
|
16
16
|
id: zod.z.string().describe("Unique identifier of the statement line").nullable(),
|
|
17
17
|
type: zod.z.string().describe("Type of statement line (e.g., 'CARD_TRANSACTION', 'TRANSFER_PAYMENT')").nullable(),
|
|
18
18
|
cleared_at: zod.z.string().describe("When the line item was cleared in ISO 8601 format. May be absent for some line types like TRANSFER_PAYMENT").nullable().optional(),
|
|
19
19
|
created_at: zod.z.string().describe("When the line item was created in ISO 8601 format").nullable()
|
|
20
|
-
}).describe("Represents a line item within a statement.");
|
|
20
|
+
}).passthrough().describe("Represents a line item within a statement.");
|
|
21
21
|
const RampListStatements_BalanceSectionSchema = zod.z.object({
|
|
22
22
|
id: zod.z.string().describe("Unique identifier of the balance section").nullable(),
|
|
23
23
|
charges: RampListStatements_MoneySchema.nullable(),
|
|
@@ -26,7 +26,7 @@ const RampListStatements_BalanceSectionSchema = zod.z.object({
|
|
|
26
26
|
entity_id: zod.z.string().describe("Unique identifier of the associated entity").nullable(),
|
|
27
27
|
ending_balance: RampListStatements_MoneySchema.nullable(),
|
|
28
28
|
opening_balance: RampListStatements_MoneySchema.nullable()
|
|
29
|
-
}).describe("Represents a balance section within a statement, typically for a specific entity.");
|
|
29
|
+
}).passthrough().describe("Represents a balance section within a statement, typically for a specific entity.");
|
|
30
30
|
const RampListStatements_StatementSchema = zod.z.object({
|
|
31
31
|
id: zod.z.string().describe("Unique identifier of the statement").nullable(),
|
|
32
32
|
charges: RampListStatements_MoneySchema.nullable(),
|
|
@@ -41,12 +41,12 @@ const RampListStatements_StatementSchema = zod.z.object({
|
|
|
41
41
|
opening_balance: RampListStatements_MoneySchema.nullable(),
|
|
42
42
|
statement_lines: zod.z.array(RampListStatements_StatementLineSchema).describe("List of line items in the statement"),
|
|
43
43
|
balance_sections: zod.z.array(RampListStatements_BalanceSectionSchema).describe("Balance breakdown by entity or category")
|
|
44
|
-
}).describe("Represents a statement from the Ramp API.");
|
|
45
|
-
const RampListStatements_PageSchema = zod.z.object({ next: zod.z.string().describe("URL for retrieving the next page of results. Present when more results are available.").nullable().optional() }).describe("Pagination metadata for navigating through the list of statements.");
|
|
44
|
+
}).passthrough().describe("Represents a statement from the Ramp API.");
|
|
45
|
+
const RampListStatements_PageSchema = zod.z.object({ next: zod.z.string().describe("URL for retrieving the next page of results. Present when more results are available.").nullable().optional() }).passthrough().describe("Pagination metadata for navigating through the list of statements.");
|
|
46
46
|
const RampListStatementsOutput = zod.z.object({
|
|
47
47
|
data: zod.z.array(RampListStatements_StatementSchema).describe("Array of statement objects returned by the list statements endpoint."),
|
|
48
48
|
page: RampListStatements_PageSchema.nullable()
|
|
49
|
-
}).describe("Response from listing statements with filtering options.");
|
|
49
|
+
}).passthrough().describe("Response from listing statements with filtering options.");
|
|
50
50
|
const rampListStatements = require_action.action("RAMP_LIST_STATEMENTS", {
|
|
51
51
|
slug: "ramp-list-statements",
|
|
52
52
|
name: "List Statements",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-statements.cjs","names":["z","action"],"sources":["../../src/actions/list-statements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampListStatementsInput = z.object({\n start: z.string().describe(\"ID of the last entity of the previous page for pagination\").optional(),\n to_date: z.string().describe(\"Filter statements with end_date on or before this date (ISO 8601 datetime). Defaults to current time\").optional(),\n from_date: z.string().describe(\"Filter statements with end_date on or after this date (ISO 8601 datetime)\").optional(),\n page_size: z.number().int().default(20).describe(\"Number of results per page (2-100, default: 20)\").optional(),\n});\nconst RampListStatements_MoneySchema = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD)\").nullable(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD')\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor to major units (e.g., 100 for USD)\").nullable(),\n}).describe(\"Represents a monetary amount with currency information.\");\nconst RampListStatements_StatementLineSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement line\").nullable(),\n type: z.string().describe(\"Type of statement line (e.g., 'CARD_TRANSACTION', 'TRANSFER_PAYMENT')\").nullable(),\n cleared_at: z.string().describe(\"When the line item was cleared in ISO 8601 format. May be absent for some line types like TRANSFER_PAYMENT\").nullable().optional(),\n created_at: z.string().describe(\"When the line item was created in ISO 8601 format\").nullable(),\n}).describe(\"Represents a line item within a statement.\");\nconst RampListStatements_BalanceSectionSchema = z.object({\n id: z.string().describe(\"Unique identifier of the balance section\").nullable(),\n charges: RampListStatements_MoneySchema.nullable(),\n credits: RampListStatements_MoneySchema.nullable(),\n payments: RampListStatements_MoneySchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated entity\").nullable(),\n ending_balance: RampListStatements_MoneySchema.nullable(),\n opening_balance: RampListStatements_MoneySchema.nullable(),\n}).describe(\"Represents a balance section within a statement, typically for a specific entity.\");\nconst RampListStatements_StatementSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement\").nullable(),\n charges: RampListStatements_MoneySchema.nullable(),\n credits: RampListStatements_MoneySchema.nullable(),\n end_date: z.string().describe(\"End date of the statement period in ISO 8601 format\").nullable(),\n payments: RampListStatements_MoneySchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated entity\").nullable().optional(),\n start_date: z.string().describe(\"Start date of the statement period in ISO 8601 format\").nullable(),\n business_id: z.string().describe(\"Unique identifier of the associated business entity\").nullable().optional(),\n statement_url: z.string().describe(\"URL to download the statement PDF\").nullable(),\n ending_balance: RampListStatements_MoneySchema.nullable(),\n opening_balance: RampListStatements_MoneySchema.nullable(),\n statement_lines: z.array(RampListStatements_StatementLineSchema).describe(\"List of line items in the statement\"),\n balance_sections: z.array(RampListStatements_BalanceSectionSchema).describe(\"Balance breakdown by entity or category\"),\n}).describe(\"Represents a statement from the Ramp API.\");\nconst RampListStatements_PageSchema = z.object({\n next: z.string().describe(\"URL for retrieving the next page of results. Present when more results are available.\").nullable().optional(),\n}).describe(\"Pagination metadata for navigating through the list of statements.\");\nexport const RampListStatementsOutput = z.object({\n data: z.array(RampListStatements_StatementSchema).describe(\"Array of statement objects returned by the list statements endpoint.\"),\n page: RampListStatements_PageSchema.nullable(),\n}).describe(\"Response from listing statements with filtering options.\");\n\nexport const rampListStatements = action(\"RAMP_LIST_STATEMENTS\", {\n slug: \"ramp-list-statements\",\n name: \"List Statements\",\n description: \"Tool for listing all statements with filtering options. Perfect for financial reporting and reconciliation workflows.\",\n input: RampListStatementsInput,\n output: RampListStatementsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/G,CAAC;AACD,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,SAAS,yDAAyD;
|
|
1
|
+
{"version":3,"file":"list-statements.cjs","names":["z","action"],"sources":["../../src/actions/list-statements.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampListStatementsInput = z.object({\n start: z.string().describe(\"ID of the last entity of the previous page for pagination\").optional(),\n to_date: z.string().describe(\"Filter statements with end_date on or before this date (ISO 8601 datetime). Defaults to current time\").optional(),\n from_date: z.string().describe(\"Filter statements with end_date on or after this date (ISO 8601 datetime)\").optional(),\n page_size: z.number().int().default(20).describe(\"Number of results per page (2-100, default: 20)\").optional(),\n});\nconst RampListStatements_MoneySchema = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD)\").nullable(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., 'USD')\").nullable(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor to major units (e.g., 100 for USD)\").nullable(),\n}).passthrough().describe(\"Represents a monetary amount with currency information.\");\nconst RampListStatements_StatementLineSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement line\").nullable(),\n type: z.string().describe(\"Type of statement line (e.g., 'CARD_TRANSACTION', 'TRANSFER_PAYMENT')\").nullable(),\n cleared_at: z.string().describe(\"When the line item was cleared in ISO 8601 format. May be absent for some line types like TRANSFER_PAYMENT\").nullable().optional(),\n created_at: z.string().describe(\"When the line item was created in ISO 8601 format\").nullable(),\n}).passthrough().describe(\"Represents a line item within a statement.\");\nconst RampListStatements_BalanceSectionSchema = z.object({\n id: z.string().describe(\"Unique identifier of the balance section\").nullable(),\n charges: RampListStatements_MoneySchema.nullable(),\n credits: RampListStatements_MoneySchema.nullable(),\n payments: RampListStatements_MoneySchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated entity\").nullable(),\n ending_balance: RampListStatements_MoneySchema.nullable(),\n opening_balance: RampListStatements_MoneySchema.nullable(),\n}).passthrough().describe(\"Represents a balance section within a statement, typically for a specific entity.\");\nconst RampListStatements_StatementSchema = z.object({\n id: z.string().describe(\"Unique identifier of the statement\").nullable(),\n charges: RampListStatements_MoneySchema.nullable(),\n credits: RampListStatements_MoneySchema.nullable(),\n end_date: z.string().describe(\"End date of the statement period in ISO 8601 format\").nullable(),\n payments: RampListStatements_MoneySchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated entity\").nullable().optional(),\n start_date: z.string().describe(\"Start date of the statement period in ISO 8601 format\").nullable(),\n business_id: z.string().describe(\"Unique identifier of the associated business entity\").nullable().optional(),\n statement_url: z.string().describe(\"URL to download the statement PDF\").nullable(),\n ending_balance: RampListStatements_MoneySchema.nullable(),\n opening_balance: RampListStatements_MoneySchema.nullable(),\n statement_lines: z.array(RampListStatements_StatementLineSchema).describe(\"List of line items in the statement\"),\n balance_sections: z.array(RampListStatements_BalanceSectionSchema).describe(\"Balance breakdown by entity or category\"),\n}).passthrough().describe(\"Represents a statement from the Ramp API.\");\nconst RampListStatements_PageSchema = z.object({\n next: z.string().describe(\"URL for retrieving the next page of results. Present when more results are available.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for navigating through the list of statements.\");\nexport const RampListStatementsOutput = z.object({\n data: z.array(RampListStatements_StatementSchema).describe(\"Array of statement objects returned by the list statements endpoint.\"),\n page: RampListStatements_PageSchema.nullable(),\n}).passthrough().describe(\"Response from listing statements with filtering options.\");\n\nexport const rampListStatements = action(\"RAMP_LIST_STATEMENTS\", {\n slug: \"ramp-list-statements\",\n name: \"List Statements\",\n description: \"Tool for listing all statements with filtering options. Perfect for financial reporting and reconciliation workflows.\",\n input: RampListStatementsInput,\n output: RampListStatementsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACrH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AAC/G,CAAC;AACD,MAAM,iCAAiCA,IAAAA,EAAE,OAAO;CAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,S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<z.ZodNumber>;
|
|
15
15
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
16
16
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
credits: z.ZodNullable<z.ZodObject<{
|
|
19
19
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
21
21
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
end_date: z.ZodNullable<z.ZodString>;
|
|
24
24
|
payments: z.ZodNullable<z.ZodObject<{
|
|
25
25
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
27
27
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
start_date: z.ZodNullable<z.ZodString>;
|
|
31
31
|
business_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -34,52 +34,52 @@ declare const RampListStatementsOutput: z.ZodObject<{
|
|
|
34
34
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
35
35
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
36
36
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
38
|
opening_balance: z.ZodNullable<z.ZodObject<{
|
|
39
39
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
41
41
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
43
|
statement_lines: z.ZodArray<z.ZodObject<{
|
|
44
44
|
id: z.ZodNullable<z.ZodString>;
|
|
45
45
|
type: z.ZodNullable<z.ZodString>;
|
|
46
46
|
cleared_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
created_at: z.ZodNullable<z.ZodString>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
49
|
balance_sections: z.ZodArray<z.ZodObject<{
|
|
50
50
|
id: z.ZodNullable<z.ZodString>;
|
|
51
51
|
charges: z.ZodNullable<z.ZodObject<{
|
|
52
52
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
53
53
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
54
54
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
56
|
credits: z.ZodNullable<z.ZodObject<{
|
|
57
57
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
58
58
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
59
59
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
60
|
-
}, z.core.$
|
|
60
|
+
}, z.core.$loose>>;
|
|
61
61
|
payments: z.ZodNullable<z.ZodObject<{
|
|
62
62
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
63
63
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
64
64
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
65
|
-
}, z.core.$
|
|
65
|
+
}, z.core.$loose>>;
|
|
66
66
|
entity_id: z.ZodNullable<z.ZodString>;
|
|
67
67
|
ending_balance: z.ZodNullable<z.ZodObject<{
|
|
68
68
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
69
69
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
70
70
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
71
|
-
}, z.core.$
|
|
71
|
+
}, z.core.$loose>>;
|
|
72
72
|
opening_balance: z.ZodNullable<z.ZodObject<{
|
|
73
73
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
74
74
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
75
75
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
76
|
-
}, z.core.$
|
|
77
|
-
}, z.core.$
|
|
78
|
-
}, z.core.$
|
|
76
|
+
}, z.core.$loose>>;
|
|
77
|
+
}, z.core.$loose>>;
|
|
78
|
+
}, z.core.$loose>>;
|
|
79
79
|
page: z.ZodNullable<z.ZodObject<{
|
|
80
80
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
-
}, z.core.$
|
|
82
|
-
}, z.core.$
|
|
81
|
+
}, z.core.$loose>>;
|
|
82
|
+
}, z.core.$loose>;
|
|
83
83
|
declare const rampListStatements: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
84
84
|
start?: string | undefined;
|
|
85
85
|
to_date?: string | undefined;
|
|
@@ -14,18 +14,18 @@ declare const RampListStatementsOutput: z.ZodObject<{
|
|
|
14
14
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
15
15
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
16
16
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
credits: z.ZodNullable<z.ZodObject<{
|
|
19
19
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
21
21
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
end_date: z.ZodNullable<z.ZodString>;
|
|
24
24
|
payments: z.ZodNullable<z.ZodObject<{
|
|
25
25
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
26
26
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
27
27
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
29
|
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
start_date: z.ZodNullable<z.ZodString>;
|
|
31
31
|
business_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -34,52 +34,52 @@ declare const RampListStatementsOutput: z.ZodObject<{
|
|
|
34
34
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
35
35
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
36
36
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
38
|
opening_balance: z.ZodNullable<z.ZodObject<{
|
|
39
39
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
41
41
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>>;
|
|
43
43
|
statement_lines: z.ZodArray<z.ZodObject<{
|
|
44
44
|
id: z.ZodNullable<z.ZodString>;
|
|
45
45
|
type: z.ZodNullable<z.ZodString>;
|
|
46
46
|
cleared_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
47
|
created_at: z.ZodNullable<z.ZodString>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>>;
|
|
49
49
|
balance_sections: z.ZodArray<z.ZodObject<{
|
|
50
50
|
id: z.ZodNullable<z.ZodString>;
|
|
51
51
|
charges: z.ZodNullable<z.ZodObject<{
|
|
52
52
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
53
53
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
54
54
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
56
|
credits: z.ZodNullable<z.ZodObject<{
|
|
57
57
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
58
58
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
59
59
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
60
|
-
}, z.core.$
|
|
60
|
+
}, z.core.$loose>>;
|
|
61
61
|
payments: z.ZodNullable<z.ZodObject<{
|
|
62
62
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
63
63
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
64
64
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
65
|
-
}, z.core.$
|
|
65
|
+
}, z.core.$loose>>;
|
|
66
66
|
entity_id: z.ZodNullable<z.ZodString>;
|
|
67
67
|
ending_balance: z.ZodNullable<z.ZodObject<{
|
|
68
68
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
69
69
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
70
70
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
71
|
-
}, z.core.$
|
|
71
|
+
}, z.core.$loose>>;
|
|
72
72
|
opening_balance: z.ZodNullable<z.ZodObject<{
|
|
73
73
|
amount: z.ZodNullable<z.ZodNumber>;
|
|
74
74
|
currency_code: z.ZodNullable<z.ZodString>;
|
|
75
75
|
minor_unit_conversion_rate: z.ZodNullable<z.ZodNumber>;
|
|
76
|
-
}, z.core.$
|
|
77
|
-
}, z.core.$
|
|
78
|
-
}, z.core.$
|
|
76
|
+
}, z.core.$loose>>;
|
|
77
|
+
}, z.core.$loose>>;
|
|
78
|
+
}, z.core.$loose>>;
|
|
79
79
|
page: z.ZodNullable<z.ZodObject<{
|
|
80
80
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
-
}, z.core.$
|
|
82
|
-
}, z.core.$
|
|
81
|
+
}, z.core.$loose>>;
|
|
82
|
+
}, z.core.$loose>;
|
|
83
83
|
declare const rampListStatements: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
84
84
|
start?: string | undefined;
|
|
85
85
|
to_date?: string | undefined;
|
|
@@ -11,13 +11,13 @@ const RampListStatements_MoneySchema = z.object({
|
|
|
11
11
|
amount: z.number().int().describe("Amount in minor units (e.g., cents for USD)").nullable(),
|
|
12
12
|
currency_code: z.string().describe("ISO 4217 currency code (e.g., 'USD')").nullable(),
|
|
13
13
|
minor_unit_conversion_rate: z.number().int().describe("Conversion rate from minor to major units (e.g., 100 for USD)").nullable()
|
|
14
|
-
}).describe("Represents a monetary amount with currency information.");
|
|
14
|
+
}).passthrough().describe("Represents a monetary amount with currency information.");
|
|
15
15
|
const RampListStatements_StatementLineSchema = z.object({
|
|
16
16
|
id: z.string().describe("Unique identifier of the statement line").nullable(),
|
|
17
17
|
type: z.string().describe("Type of statement line (e.g., 'CARD_TRANSACTION', 'TRANSFER_PAYMENT')").nullable(),
|
|
18
18
|
cleared_at: z.string().describe("When the line item was cleared in ISO 8601 format. May be absent for some line types like TRANSFER_PAYMENT").nullable().optional(),
|
|
19
19
|
created_at: z.string().describe("When the line item was created in ISO 8601 format").nullable()
|
|
20
|
-
}).describe("Represents a line item within a statement.");
|
|
20
|
+
}).passthrough().describe("Represents a line item within a statement.");
|
|
21
21
|
const RampListStatements_BalanceSectionSchema = z.object({
|
|
22
22
|
id: z.string().describe("Unique identifier of the balance section").nullable(),
|
|
23
23
|
charges: RampListStatements_MoneySchema.nullable(),
|
|
@@ -26,7 +26,7 @@ const RampListStatements_BalanceSectionSchema = z.object({
|
|
|
26
26
|
entity_id: z.string().describe("Unique identifier of the associated entity").nullable(),
|
|
27
27
|
ending_balance: RampListStatements_MoneySchema.nullable(),
|
|
28
28
|
opening_balance: RampListStatements_MoneySchema.nullable()
|
|
29
|
-
}).describe("Represents a balance section within a statement, typically for a specific entity.");
|
|
29
|
+
}).passthrough().describe("Represents a balance section within a statement, typically for a specific entity.");
|
|
30
30
|
const RampListStatements_StatementSchema = z.object({
|
|
31
31
|
id: z.string().describe("Unique identifier of the statement").nullable(),
|
|
32
32
|
charges: RampListStatements_MoneySchema.nullable(),
|
|
@@ -41,8 +41,8 @@ const RampListStatements_StatementSchema = z.object({
|
|
|
41
41
|
opening_balance: RampListStatements_MoneySchema.nullable(),
|
|
42
42
|
statement_lines: z.array(RampListStatements_StatementLineSchema).describe("List of line items in the statement"),
|
|
43
43
|
balance_sections: z.array(RampListStatements_BalanceSectionSchema).describe("Balance breakdown by entity or category")
|
|
44
|
-
}).describe("Represents a statement from the Ramp API.");
|
|
45
|
-
const RampListStatements_PageSchema = z.object({ next: z.string().describe("URL for retrieving the next page of results. Present when more results are available.").nullable().optional() }).describe("Pagination metadata for navigating through the list of statements.");
|
|
44
|
+
}).passthrough().describe("Represents a statement from the Ramp API.");
|
|
45
|
+
const RampListStatements_PageSchema = z.object({ next: z.string().describe("URL for retrieving the next page of results. Present when more results are available.").nullable().optional() }).passthrough().describe("Pagination metadata for navigating through the list of statements.");
|
|
46
46
|
const rampListStatements = action("RAMP_LIST_STATEMENTS", {
|
|
47
47
|
slug: "ramp-list-statements",
|
|
48
48
|
name: "List Statements",
|
|
@@ -51,7 +51,7 @@ const rampListStatements = action("RAMP_LIST_STATEMENTS", {
|
|
|
51
51
|
output: z.object({
|
|
52
52
|
data: z.array(RampListStatements_StatementSchema).describe("Array of statement objects returned by the list statements endpoint."),
|
|
53
53
|
page: RampListStatements_PageSchema.nullable()
|
|
54
|
-
}).describe("Response from listing statements with filtering options.")
|
|
54
|
+
}).passthrough().describe("Response from listing statements with filtering options.")
|
|
55
55
|
});
|
|
56
56
|
//#endregion
|
|
57
57
|
export { rampListStatements };
|