@keystrokehq/ramp 0.0.16 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -54
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-department.cjs +19 -0
- package/dist/actions/create-department.cjs.map +1 -0
- package/dist/actions/create-department.d.cts +9 -0
- package/dist/actions/create-department.d.cts.map +1 -0
- package/dist/actions/create-department.d.mts +9 -0
- package/dist/actions/create-department.d.mts.map +1 -0
- package/dist/actions/create-department.mjs +16 -0
- package/dist/actions/create-department.mjs.map +1 -0
- package/dist/actions/create-inventory-item-accounting-field.cjs +25 -0
- package/dist/actions/create-inventory-item-accounting-field.cjs.map +1 -0
- package/dist/actions/create-inventory-item-accounting-field.d.cts +9 -0
- package/dist/actions/create-inventory-item-accounting-field.d.cts.map +1 -0
- package/dist/actions/create-inventory-item-accounting-field.d.mts +9 -0
- package/dist/actions/create-inventory-item-accounting-field.d.mts.map +1 -0
- package/dist/actions/create-inventory-item-accounting-field.mjs +22 -0
- package/dist/actions/create-inventory-item-accounting-field.mjs.map +1 -0
- package/dist/actions/create-memo.cjs +23 -0
- package/dist/actions/create-memo.cjs.map +1 -0
- package/dist/actions/create-memo.d.cts +9 -0
- package/dist/actions/create-memo.d.cts.map +1 -0
- package/dist/actions/create-memo.d.mts +9 -0
- package/dist/actions/create-memo.d.mts.map +1 -0
- package/dist/actions/create-memo.mjs +20 -0
- package/dist/actions/create-memo.mjs.map +1 -0
- package/dist/actions/create-mileage-reimbursement.cjs +140 -0
- package/dist/actions/create-mileage-reimbursement.cjs.map +1 -0
- package/dist/actions/create-mileage-reimbursement.d.cts +9 -0
- package/dist/actions/create-mileage-reimbursement.d.cts.map +1 -0
- package/dist/actions/create-mileage-reimbursement.d.mts +9 -0
- package/dist/actions/create-mileage-reimbursement.d.mts.map +1 -0
- package/dist/actions/create-mileage-reimbursement.mjs +139 -0
- package/dist/actions/create-mileage-reimbursement.mjs.map +1 -0
- package/dist/actions/create-new-custom-accounting-field.cjs +45 -0
- package/dist/actions/create-new-custom-accounting-field.cjs.map +1 -0
- package/dist/actions/create-new-custom-accounting-field.d.cts +9 -0
- package/dist/actions/create-new-custom-accounting-field.d.cts.map +1 -0
- package/dist/actions/create-new-custom-accounting-field.d.mts +9 -0
- package/dist/actions/create-new-custom-accounting-field.d.mts.map +1 -0
- package/dist/actions/create-new-custom-accounting-field.mjs +42 -0
- package/dist/actions/create-new-custom-accounting-field.mjs.map +1 -0
- package/dist/actions/create-tax-code-accounting-field.cjs +25 -0
- package/dist/actions/create-tax-code-accounting-field.cjs.map +1 -0
- package/dist/actions/create-tax-code-accounting-field.d.cts +9 -0
- package/dist/actions/create-tax-code-accounting-field.d.cts.map +1 -0
- package/dist/actions/create-tax-code-accounting-field.d.mts +9 -0
- package/dist/actions/create-tax-code-accounting-field.d.mts.map +1 -0
- package/dist/actions/create-tax-code-accounting-field.mjs +22 -0
- package/dist/actions/create-tax-code-accounting-field.mjs.map +1 -0
- package/dist/actions/create-user-invite.cjs +34 -0
- package/dist/actions/create-user-invite.cjs.map +1 -0
- package/dist/actions/create-user-invite.d.cts +9 -0
- package/dist/actions/create-user-invite.d.cts.map +1 -0
- package/dist/actions/create-user-invite.d.mts +9 -0
- package/dist/actions/create-user-invite.d.mts.map +1 -0
- package/dist/actions/create-user-invite.mjs +31 -0
- package/dist/actions/create-user-invite.mjs.map +1 -0
- package/dist/actions/create-webhook-subscription.cjs +58 -0
- package/dist/actions/create-webhook-subscription.cjs.map +1 -0
- package/dist/actions/create-webhook-subscription.d.cts +9 -0
- package/dist/actions/create-webhook-subscription.d.cts.map +1 -0
- package/dist/actions/create-webhook-subscription.d.mts +9 -0
- package/dist/actions/create-webhook-subscription.d.mts.map +1 -0
- package/dist/actions/create-webhook-subscription.mjs +57 -0
- package/dist/actions/create-webhook-subscription.mjs.map +1 -0
- package/dist/actions/deactivate-user.cjs +16 -0
- package/dist/actions/deactivate-user.cjs.map +1 -0
- package/dist/actions/deactivate-user.d.cts +9 -0
- package/dist/actions/deactivate-user.d.cts.map +1 -0
- package/dist/actions/deactivate-user.d.mts +9 -0
- package/dist/actions/deactivate-user.d.mts.map +1 -0
- package/dist/actions/deactivate-user.mjs +13 -0
- package/dist/actions/deactivate-user.mjs.map +1 -0
- package/dist/actions/delete-accounting-account.cjs +16 -0
- package/dist/actions/delete-accounting-account.cjs.map +1 -0
- package/dist/actions/delete-accounting-account.d.cts +9 -0
- package/dist/actions/delete-accounting-account.d.cts.map +1 -0
- package/dist/actions/delete-accounting-account.d.mts +9 -0
- package/dist/actions/delete-accounting-account.d.mts.map +1 -0
- package/dist/actions/delete-accounting-account.mjs +13 -0
- package/dist/actions/delete-accounting-account.mjs.map +1 -0
- package/dist/actions/delete-accounting-connection.cjs +16 -0
- package/dist/actions/delete-accounting-connection.cjs.map +1 -0
- package/dist/actions/delete-accounting-connection.d.cts +9 -0
- package/dist/actions/delete-accounting-connection.d.cts.map +1 -0
- package/dist/actions/delete-accounting-connection.d.mts +9 -0
- package/dist/actions/delete-accounting-connection.d.mts.map +1 -0
- package/dist/actions/delete-accounting-connection.mjs +13 -0
- package/dist/actions/delete-accounting-connection.mjs.map +1 -0
- package/dist/actions/delete-accounting-fields.cjs +16 -0
- package/dist/actions/delete-accounting-fields.cjs.map +1 -0
- package/dist/actions/delete-accounting-fields.d.cts +9 -0
- package/dist/actions/delete-accounting-fields.d.cts.map +1 -0
- package/dist/actions/delete-accounting-fields.d.mts +9 -0
- package/dist/actions/delete-accounting-fields.d.mts.map +1 -0
- package/dist/actions/delete-accounting-fields.mjs +13 -0
- package/dist/actions/delete-accounting-fields.mjs.map +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.cjs +16 -0
- package/dist/actions/delete-accounting-inventory-item-options.cjs.map +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.d.cts +9 -0
- package/dist/actions/delete-accounting-inventory-item-options.d.cts.map +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.d.mts +9 -0
- package/dist/actions/delete-accounting-inventory-item-options.d.mts.map +1 -0
- package/dist/actions/delete-accounting-inventory-item-options.mjs +13 -0
- package/dist/actions/delete-accounting-inventory-item-options.mjs.map +1 -0
- package/dist/actions/delete-accounting-tax-code-options.cjs +16 -0
- package/dist/actions/delete-accounting-tax-code-options.cjs.map +1 -0
- package/dist/actions/delete-accounting-tax-code-options.d.cts +9 -0
- package/dist/actions/delete-accounting-tax-code-options.d.cts.map +1 -0
- package/dist/actions/delete-accounting-tax-code-options.d.mts +9 -0
- package/dist/actions/delete-accounting-tax-code-options.d.mts.map +1 -0
- package/dist/actions/delete-accounting-tax-code-options.mjs +13 -0
- package/dist/actions/delete-accounting-tax-code-options.mjs.map +1 -0
- package/dist/actions/delete-accounting-tax-code.cjs +16 -0
- package/dist/actions/delete-accounting-tax-code.cjs.map +1 -0
- package/dist/actions/delete-accounting-tax-code.d.cts +9 -0
- package/dist/actions/delete-accounting-tax-code.d.cts.map +1 -0
- package/dist/actions/delete-accounting-tax-code.d.mts +9 -0
- package/dist/actions/delete-accounting-tax-code.d.mts.map +1 -0
- package/dist/actions/delete-accounting-tax-code.mjs +13 -0
- package/dist/actions/delete-accounting-tax-code.mjs.map +1 -0
- package/dist/actions/delete-accounting-tax-rates.cjs +19 -0
- package/dist/actions/delete-accounting-tax-rates.cjs.map +1 -0
- package/dist/actions/delete-accounting-tax-rates.d.cts +9 -0
- package/dist/actions/delete-accounting-tax-rates.d.cts.map +1 -0
- package/dist/actions/delete-accounting-tax-rates.d.mts +9 -0
- package/dist/actions/delete-accounting-tax-rates.d.mts.map +1 -0
- package/dist/actions/delete-accounting-tax-rates.mjs +16 -0
- package/dist/actions/delete-accounting-tax-rates.mjs.map +1 -0
- package/dist/actions/delete-accounting-vendors.cjs +16 -0
- package/dist/actions/delete-accounting-vendors.cjs.map +1 -0
- package/dist/actions/delete-accounting-vendors.d.cts +9 -0
- package/dist/actions/delete-accounting-vendors.d.cts.map +1 -0
- package/dist/actions/delete-accounting-vendors.d.mts +9 -0
- package/dist/actions/delete-accounting-vendors.d.mts.map +1 -0
- package/dist/actions/delete-accounting-vendors.mjs +13 -0
- package/dist/actions/delete-accounting-vendors.mjs.map +1 -0
- package/dist/actions/delete-custom-field-option.cjs +16 -0
- package/dist/actions/delete-custom-field-option.cjs.map +1 -0
- package/dist/actions/delete-custom-field-option.d.cts +9 -0
- package/dist/actions/delete-custom-field-option.d.cts.map +1 -0
- package/dist/actions/delete-custom-field-option.d.mts +9 -0
- package/dist/actions/delete-custom-field-option.d.mts.map +1 -0
- package/dist/actions/delete-custom-field-option.mjs +13 -0
- package/dist/actions/delete-custom-field-option.mjs.map +1 -0
- package/dist/actions/delete-inventory-item-field.cjs +16 -0
- package/dist/actions/delete-inventory-item-field.cjs.map +1 -0
- package/dist/actions/delete-inventory-item-field.d.cts +9 -0
- package/dist/actions/delete-inventory-item-field.d.cts.map +1 -0
- package/dist/actions/delete-inventory-item-field.d.mts +9 -0
- package/dist/actions/delete-inventory-item-field.d.mts.map +1 -0
- package/dist/actions/delete-inventory-item-field.mjs +13 -0
- package/dist/actions/delete-inventory-item-field.mjs.map +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.cjs +76 -0
- package/dist/actions/delete-spend-allocation-delete-users.cjs.map +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.d.cts +9 -0
- package/dist/actions/delete-spend-allocation-delete-users.d.cts.map +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.d.mts +9 -0
- package/dist/actions/delete-spend-allocation-delete-users.d.mts.map +1 -0
- package/dist/actions/delete-spend-allocation-delete-users.mjs +75 -0
- package/dist/actions/delete-spend-allocation-delete-users.mjs.map +1 -0
- package/dist/actions/delete-webhook.cjs +16 -0
- package/dist/actions/delete-webhook.cjs.map +1 -0
- package/dist/actions/delete-webhook.d.cts +9 -0
- package/dist/actions/delete-webhook.d.cts.map +1 -0
- package/dist/actions/delete-webhook.d.mts +9 -0
- package/dist/actions/delete-webhook.d.mts.map +1 -0
- package/dist/actions/delete-webhook.mjs +13 -0
- package/dist/actions/delete-webhook.mjs.map +1 -0
- package/dist/actions/fetch-accounting-account.cjs +36 -0
- package/dist/actions/fetch-accounting-account.cjs.map +1 -0
- package/dist/actions/fetch-accounting-account.d.cts +9 -0
- package/dist/actions/fetch-accounting-account.d.cts.map +1 -0
- package/dist/actions/fetch-accounting-account.d.mts +9 -0
- package/dist/actions/fetch-accounting-account.d.mts.map +1 -0
- package/dist/actions/fetch-accounting-account.mjs +35 -0
- package/dist/actions/fetch-accounting-account.mjs.map +1 -0
- package/dist/actions/fetch-accounting-vendor.cjs +36 -0
- package/dist/actions/fetch-accounting-vendor.cjs.map +1 -0
- package/dist/actions/fetch-accounting-vendor.d.cts +9 -0
- package/dist/actions/fetch-accounting-vendor.d.cts.map +1 -0
- package/dist/actions/fetch-accounting-vendor.d.mts +9 -0
- package/dist/actions/fetch-accounting-vendor.d.mts.map +1 -0
- package/dist/actions/fetch-accounting-vendor.mjs +35 -0
- package/dist/actions/fetch-accounting-vendor.mjs.map +1 -0
- package/dist/actions/fetch-custom-accounting-field.cjs +26 -0
- package/dist/actions/fetch-custom-accounting-field.cjs.map +1 -0
- package/dist/actions/fetch-custom-accounting-field.d.cts +9 -0
- package/dist/actions/fetch-custom-accounting-field.d.cts.map +1 -0
- package/dist/actions/fetch-custom-accounting-field.d.mts +9 -0
- package/dist/actions/fetch-custom-accounting-field.d.mts.map +1 -0
- package/dist/actions/fetch-custom-accounting-field.mjs +25 -0
- package/dist/actions/fetch-custom-accounting-field.mjs.map +1 -0
- package/dist/actions/get-accounting-accounts.cjs +45 -0
- package/dist/actions/get-accounting-accounts.cjs.map +1 -0
- package/dist/actions/get-accounting-accounts.d.cts +9 -0
- package/dist/actions/get-accounting-accounts.d.cts.map +1 -0
- package/dist/actions/get-accounting-accounts.d.mts +9 -0
- package/dist/actions/get-accounting-accounts.d.mts.map +1 -0
- package/dist/actions/get-accounting-accounts.mjs +44 -0
- package/dist/actions/get-accounting-accounts.mjs.map +1 -0
- package/dist/actions/get-accounting-all-connections.cjs +23 -0
- package/dist/actions/get-accounting-all-connections.cjs.map +1 -0
- package/dist/actions/get-accounting-all-connections.d.cts +9 -0
- package/dist/actions/get-accounting-all-connections.d.cts.map +1 -0
- package/dist/actions/get-accounting-all-connections.d.mts +9 -0
- package/dist/actions/get-accounting-all-connections.d.mts.map +1 -0
- package/dist/actions/get-accounting-all-connections.mjs +22 -0
- package/dist/actions/get-accounting-all-connections.mjs.map +1 -0
- package/dist/actions/get-accounting-connection-by-id.cjs +41 -0
- package/dist/actions/get-accounting-connection-by-id.cjs.map +1 -0
- package/dist/actions/get-accounting-connection-by-id.d.cts +9 -0
- package/dist/actions/get-accounting-connection-by-id.d.cts.map +1 -0
- package/dist/actions/get-accounting-connection-by-id.d.mts +9 -0
- package/dist/actions/get-accounting-connection-by-id.d.mts.map +1 -0
- package/dist/actions/get-accounting-connection-by-id.mjs +40 -0
- package/dist/actions/get-accounting-connection-by-id.mjs.map +1 -0
- package/dist/actions/get-accounting-connection.cjs +27 -0
- package/dist/actions/get-accounting-connection.cjs.map +1 -0
- package/dist/actions/get-accounting-connection.d.cts +9 -0
- package/dist/actions/get-accounting-connection.d.cts.map +1 -0
- package/dist/actions/get-accounting-connection.d.mts +9 -0
- package/dist/actions/get-accounting-connection.d.mts.map +1 -0
- package/dist/actions/get-accounting-connection.mjs +26 -0
- package/dist/actions/get-accounting-connection.mjs.map +1 -0
- package/dist/actions/get-accounting-fields.cjs +29 -0
- package/dist/actions/get-accounting-fields.cjs.map +1 -0
- package/dist/actions/get-accounting-fields.d.cts +9 -0
- package/dist/actions/get-accounting-fields.d.cts.map +1 -0
- package/dist/actions/get-accounting-fields.d.mts +9 -0
- package/dist/actions/get-accounting-fields.d.mts.map +1 -0
- package/dist/actions/get-accounting-fields.mjs +28 -0
- package/dist/actions/get-accounting-fields.mjs.map +1 -0
- package/dist/actions/get-accounting-vendors.cjs +29 -0
- package/dist/actions/get-accounting-vendors.cjs.map +1 -0
- package/dist/actions/get-accounting-vendors.d.cts +9 -0
- package/dist/actions/get-accounting-vendors.d.cts.map +1 -0
- package/dist/actions/get-accounting-vendors.d.mts +9 -0
- package/dist/actions/get-accounting-vendors.d.mts.map +1 -0
- package/dist/actions/get-accounting-vendors.mjs +28 -0
- package/dist/actions/get-accounting-vendors.mjs.map +1 -0
- package/dist/actions/get-all-transactions.cjs +75 -0
- package/dist/actions/get-all-transactions.cjs.map +1 -0
- package/dist/actions/get-all-transactions.d.cts +9 -0
- package/dist/actions/get-all-transactions.d.cts.map +1 -0
- package/dist/actions/get-all-transactions.d.mts +9 -0
- package/dist/actions/get-all-transactions.d.mts.map +1 -0
- package/dist/actions/get-all-transactions.mjs +74 -0
- package/dist/actions/get-all-transactions.mjs.map +1 -0
- package/dist/actions/get-card-vault-resource.cjs +20 -0
- package/dist/actions/get-card-vault-resource.cjs.map +1 -0
- package/dist/actions/get-card-vault-resource.d.cts +9 -0
- package/dist/actions/get-card-vault-resource.d.cts.map +1 -0
- package/dist/actions/get-card-vault-resource.d.mts +9 -0
- package/dist/actions/get-card-vault-resource.d.mts.map +1 -0
- package/dist/actions/get-card-vault-resource.mjs +17 -0
- package/dist/actions/get-card-vault-resource.mjs.map +1 -0
- package/dist/actions/get-card.cjs +61 -0
- package/dist/actions/get-card.cjs.map +1 -0
- package/dist/actions/get-card.d.cts +9 -0
- package/dist/actions/get-card.d.cts.map +1 -0
- package/dist/actions/get-card.d.mts +9 -0
- package/dist/actions/get-card.d.mts.map +1 -0
- package/dist/actions/get-card.mjs +60 -0
- package/dist/actions/get-card.mjs.map +1 -0
- package/dist/actions/get-custom-field-option.cjs +28 -0
- package/dist/actions/get-custom-field-option.cjs.map +1 -0
- package/dist/actions/get-custom-field-option.d.cts +9 -0
- package/dist/actions/get-custom-field-option.d.cts.map +1 -0
- package/dist/actions/get-custom-field-option.d.mts +9 -0
- package/dist/actions/get-custom-field-option.d.mts.map +1 -0
- package/dist/actions/get-custom-field-option.mjs +25 -0
- package/dist/actions/get-custom-field-option.mjs.map +1 -0
- package/dist/actions/get-department.cjs +19 -0
- package/dist/actions/get-department.cjs.map +1 -0
- package/dist/actions/get-department.d.cts +9 -0
- package/dist/actions/get-department.d.cts.map +1 -0
- package/dist/actions/get-department.d.mts +9 -0
- package/dist/actions/get-department.d.mts.map +1 -0
- package/dist/actions/get-department.mjs +16 -0
- package/dist/actions/get-department.mjs.map +1 -0
- package/dist/actions/get-inventory-item-field.cjs +22 -0
- package/dist/actions/get-inventory-item-field.cjs.map +1 -0
- package/dist/actions/get-inventory-item-field.d.cts +9 -0
- package/dist/actions/get-inventory-item-field.d.cts.map +1 -0
- package/dist/actions/get-inventory-item-field.d.mts +9 -0
- package/dist/actions/get-inventory-item-field.d.mts.map +1 -0
- package/dist/actions/get-inventory-item-field.mjs +19 -0
- package/dist/actions/get-inventory-item-field.mjs.map +1 -0
- package/dist/actions/get-memo.cjs +19 -0
- package/dist/actions/get-memo.cjs.map +1 -0
- package/dist/actions/get-memo.d.cts +9 -0
- package/dist/actions/get-memo.d.cts.map +1 -0
- package/dist/actions/get-memo.d.mts +9 -0
- package/dist/actions/get-memo.d.mts.map +1 -0
- package/dist/actions/get-memo.mjs +16 -0
- package/dist/actions/get-memo.mjs.map +1 -0
- package/dist/actions/get-reimbursement.cjs +52 -0
- package/dist/actions/get-reimbursement.cjs.map +1 -0
- package/dist/actions/get-reimbursement.d.cts +9 -0
- package/dist/actions/get-reimbursement.d.cts.map +1 -0
- package/dist/actions/get-reimbursement.d.mts +9 -0
- package/dist/actions/get-reimbursement.d.mts.map +1 -0
- package/dist/actions/get-reimbursement.mjs +51 -0
- package/dist/actions/get-reimbursement.mjs.map +1 -0
- package/dist/actions/get-spend-limit.cjs +103 -0
- package/dist/actions/get-spend-limit.cjs.map +1 -0
- package/dist/actions/get-spend-limit.d.cts +9 -0
- package/dist/actions/get-spend-limit.d.cts.map +1 -0
- package/dist/actions/get-spend-limit.d.mts +9 -0
- package/dist/actions/get-spend-limit.d.mts.map +1 -0
- package/dist/actions/get-spend-limit.mjs +102 -0
- package/dist/actions/get-spend-limit.mjs.map +1 -0
- package/dist/actions/get-statement.cjs +49 -0
- package/dist/actions/get-statement.cjs.map +1 -0
- package/dist/actions/get-statement.d.cts +9 -0
- package/dist/actions/get-statement.d.cts.map +1 -0
- package/dist/actions/get-statement.d.mts +9 -0
- package/dist/actions/get-statement.d.mts.map +1 -0
- package/dist/actions/get-statement.mjs +48 -0
- package/dist/actions/get-statement.mjs.map +1 -0
- package/dist/actions/get-transaction.cjs +57 -0
- package/dist/actions/get-transaction.cjs.map +1 -0
- package/dist/actions/get-transaction.d.cts +9 -0
- package/dist/actions/get-transaction.d.cts.map +1 -0
- package/dist/actions/get-transaction.d.mts +9 -0
- package/dist/actions/get-transaction.d.mts.map +1 -0
- package/dist/actions/get-transaction.mjs +56 -0
- package/dist/actions/get-transaction.mjs.map +1 -0
- package/dist/actions/get-user.cjs +37 -0
- package/dist/actions/get-user.cjs.map +1 -0
- package/dist/actions/get-user.d.cts +9 -0
- package/dist/actions/get-user.d.cts.map +1 -0
- package/dist/actions/get-user.d.mts +9 -0
- package/dist/actions/get-user.d.mts.map +1 -0
- package/dist/actions/get-user.mjs +36 -0
- package/dist/actions/get-user.mjs.map +1 -0
- package/dist/actions/get-users-deferred-status.cjs +32 -0
- package/dist/actions/get-users-deferred-status.cjs.map +1 -0
- package/dist/actions/get-users-deferred-status.d.cts +9 -0
- package/dist/actions/get-users-deferred-status.d.cts.map +1 -0
- package/dist/actions/get-users-deferred-status.d.mts +9 -0
- package/dist/actions/get-users-deferred-status.d.mts.map +1 -0
- package/dist/actions/get-users-deferred-status.mjs +31 -0
- package/dist/actions/get-users-deferred-status.mjs.map +1 -0
- package/dist/actions/get-vendor.cjs +55 -0
- package/dist/actions/get-vendor.cjs.map +1 -0
- package/dist/actions/get-vendor.d.cts +9 -0
- package/dist/actions/get-vendor.d.cts.map +1 -0
- package/dist/actions/get-vendor.d.mts +9 -0
- package/dist/actions/get-vendor.d.mts.map +1 -0
- package/dist/actions/get-vendor.mjs +54 -0
- package/dist/actions/get-vendor.mjs.map +1 -0
- package/dist/actions/get-webhook.cjs +53 -0
- package/dist/actions/get-webhook.cjs.map +1 -0
- package/dist/actions/get-webhook.d.cts +9 -0
- package/dist/actions/get-webhook.d.cts.map +1 -0
- package/dist/actions/get-webhook.d.mts +9 -0
- package/dist/actions/get-webhook.d.mts.map +1 -0
- package/dist/actions/get-webhook.mjs +52 -0
- package/dist/actions/get-webhook.mjs.map +1 -0
- package/dist/actions/index.cjs +177 -0
- package/dist/actions/index.d.cts +89 -0
- package/dist/actions/index.d.mts +89 -0
- package/dist/actions/index.mjs +89 -0
- package/dist/actions/issue-virtual-card.cjs +36 -0
- package/dist/actions/issue-virtual-card.cjs.map +1 -0
- package/dist/actions/issue-virtual-card.d.cts +9 -0
- package/dist/actions/issue-virtual-card.d.cts.map +1 -0
- package/dist/actions/issue-virtual-card.d.mts +9 -0
- package/dist/actions/issue-virtual-card.d.mts.map +1 -0
- package/dist/actions/issue-virtual-card.mjs +35 -0
- package/dist/actions/issue-virtual-card.mjs.map +1 -0
- package/dist/actions/list-accounting-inventory-item-options.cjs +34 -0
- package/dist/actions/list-accounting-inventory-item-options.cjs.map +1 -0
- package/dist/actions/list-accounting-inventory-item-options.d.cts +9 -0
- package/dist/actions/list-accounting-inventory-item-options.d.cts.map +1 -0
- package/dist/actions/list-accounting-inventory-item-options.d.mts +9 -0
- package/dist/actions/list-accounting-inventory-item-options.d.mts.map +1 -0
- package/dist/actions/list-accounting-inventory-item-options.mjs +33 -0
- package/dist/actions/list-accounting-inventory-item-options.mjs.map +1 -0
- package/dist/actions/list-accounting-tax-rates.cjs +31 -0
- package/dist/actions/list-accounting-tax-rates.cjs.map +1 -0
- package/dist/actions/list-accounting-tax-rates.d.cts +9 -0
- package/dist/actions/list-accounting-tax-rates.d.cts.map +1 -0
- package/dist/actions/list-accounting-tax-rates.d.mts +9 -0
- package/dist/actions/list-accounting-tax-rates.d.mts.map +1 -0
- package/dist/actions/list-accounting-tax-rates.mjs +30 -0
- package/dist/actions/list-accounting-tax-rates.mjs.map +1 -0
- package/dist/actions/list-cards.cjs +71 -0
- package/dist/actions/list-cards.cjs.map +1 -0
- package/dist/actions/list-cards.d.cts +9 -0
- package/dist/actions/list-cards.d.cts.map +1 -0
- package/dist/actions/list-cards.d.mts +9 -0
- package/dist/actions/list-cards.d.mts.map +1 -0
- package/dist/actions/list-cards.mjs +70 -0
- package/dist/actions/list-cards.mjs.map +1 -0
- package/dist/actions/list-departments.cjs +27 -0
- package/dist/actions/list-departments.cjs.map +1 -0
- package/dist/actions/list-departments.d.cts +9 -0
- package/dist/actions/list-departments.d.cts.map +1 -0
- package/dist/actions/list-departments.d.mts +9 -0
- package/dist/actions/list-departments.d.mts.map +1 -0
- package/dist/actions/list-departments.mjs +26 -0
- package/dist/actions/list-departments.mjs.map +1 -0
- package/dist/actions/list-memos.cjs +35 -0
- package/dist/actions/list-memos.cjs.map +1 -0
- package/dist/actions/list-memos.d.cts +9 -0
- package/dist/actions/list-memos.d.cts.map +1 -0
- package/dist/actions/list-memos.d.mts +9 -0
- package/dist/actions/list-memos.d.mts.map +1 -0
- package/dist/actions/list-memos.mjs +34 -0
- package/dist/actions/list-memos.mjs.map +1 -0
- package/dist/actions/list-reimbursements.cjs +77 -0
- package/dist/actions/list-reimbursements.cjs.map +1 -0
- package/dist/actions/list-reimbursements.d.cts +9 -0
- package/dist/actions/list-reimbursements.d.cts.map +1 -0
- package/dist/actions/list-reimbursements.d.mts +9 -0
- package/dist/actions/list-reimbursements.d.mts.map +1 -0
- package/dist/actions/list-reimbursements.mjs +76 -0
- package/dist/actions/list-reimbursements.mjs.map +1 -0
- package/dist/actions/list-statements.cjs +60 -0
- package/dist/actions/list-statements.cjs.map +1 -0
- package/dist/actions/list-statements.d.cts +9 -0
- package/dist/actions/list-statements.d.cts.map +1 -0
- package/dist/actions/list-statements.d.mts +9 -0
- package/dist/actions/list-statements.d.mts.map +1 -0
- package/dist/actions/list-statements.mjs +59 -0
- package/dist/actions/list-statements.mjs.map +1 -0
- package/dist/actions/list-users.cjs +50 -0
- package/dist/actions/list-users.cjs.map +1 -0
- package/dist/actions/list-users.d.cts +9 -0
- package/dist/actions/list-users.d.cts.map +1 -0
- package/dist/actions/list-users.d.mts +9 -0
- package/dist/actions/list-users.d.mts.map +1 -0
- package/dist/actions/list-users.mjs +49 -0
- package/dist/actions/list-users.mjs.map +1 -0
- package/dist/actions/list-vendors-accounts.cjs +31 -0
- package/dist/actions/list-vendors-accounts.cjs.map +1 -0
- package/dist/actions/list-vendors-accounts.d.cts +9 -0
- package/dist/actions/list-vendors-accounts.d.cts.map +1 -0
- package/dist/actions/list-vendors-accounts.d.mts +9 -0
- package/dist/actions/list-vendors-accounts.d.mts.map +1 -0
- package/dist/actions/list-vendors-accounts.mjs +30 -0
- package/dist/actions/list-vendors-accounts.mjs.map +1 -0
- package/dist/actions/list-vendors-contacts.cjs +32 -0
- package/dist/actions/list-vendors-contacts.cjs.map +1 -0
- package/dist/actions/list-vendors-contacts.d.cts +9 -0
- package/dist/actions/list-vendors-contacts.d.cts.map +1 -0
- package/dist/actions/list-vendors-contacts.d.mts +9 -0
- package/dist/actions/list-vendors-contacts.d.mts.map +1 -0
- package/dist/actions/list-vendors-contacts.mjs +31 -0
- package/dist/actions/list-vendors-contacts.mjs.map +1 -0
- package/dist/actions/list-vendors-credits.cjs +76 -0
- package/dist/actions/list-vendors-credits.cjs.map +1 -0
- package/dist/actions/list-vendors-credits.d.cts +9 -0
- package/dist/actions/list-vendors-credits.d.cts.map +1 -0
- package/dist/actions/list-vendors-credits.d.mts +9 -0
- package/dist/actions/list-vendors-credits.d.mts.map +1 -0
- package/dist/actions/list-vendors-credits.mjs +75 -0
- package/dist/actions/list-vendors-credits.mjs.map +1 -0
- package/dist/actions/list-vendors.cjs +64 -0
- package/dist/actions/list-vendors.cjs.map +1 -0
- package/dist/actions/list-vendors.d.cts +9 -0
- package/dist/actions/list-vendors.d.cts.map +1 -0
- package/dist/actions/list-vendors.d.mts +9 -0
- package/dist/actions/list-vendors.d.mts.map +1 -0
- package/dist/actions/list-vendors.mjs +63 -0
- package/dist/actions/list-vendors.mjs.map +1 -0
- package/dist/actions/list-webhooks.cjs +25 -0
- package/dist/actions/list-webhooks.cjs.map +1 -0
- package/dist/actions/list-webhooks.d.cts +9 -0
- package/dist/actions/list-webhooks.d.cts.map +1 -0
- package/dist/actions/list-webhooks.d.mts +9 -0
- package/dist/actions/list-webhooks.d.mts.map +1 -0
- package/dist/actions/list-webhooks.mjs +24 -0
- package/dist/actions/list-webhooks.mjs.map +1 -0
- package/dist/actions/options-for-custom-accounting-field.cjs +33 -0
- package/dist/actions/options-for-custom-accounting-field.cjs.map +1 -0
- package/dist/actions/options-for-custom-accounting-field.d.cts +9 -0
- package/dist/actions/options-for-custom-accounting-field.d.cts.map +1 -0
- package/dist/actions/options-for-custom-accounting-field.d.mts +9 -0
- package/dist/actions/options-for-custom-accounting-field.d.mts.map +1 -0
- package/dist/actions/options-for-custom-accounting-field.mjs +32 -0
- package/dist/actions/options-for-custom-accounting-field.mjs.map +1 -0
- package/dist/actions/patch-accounting-connection.cjs +36 -0
- package/dist/actions/patch-accounting-connection.cjs.map +1 -0
- package/dist/actions/patch-accounting-connection.d.cts +9 -0
- package/dist/actions/patch-accounting-connection.d.cts.map +1 -0
- package/dist/actions/patch-accounting-connection.d.mts +9 -0
- package/dist/actions/patch-accounting-connection.d.mts.map +1 -0
- package/dist/actions/patch-accounting-connection.mjs +35 -0
- package/dist/actions/patch-accounting-connection.mjs.map +1 -0
- package/dist/actions/patch-card-resource.cjs +46 -0
- package/dist/actions/patch-card-resource.cjs.map +1 -0
- package/dist/actions/patch-card-resource.d.cts +9 -0
- package/dist/actions/patch-card-resource.d.cts.map +1 -0
- package/dist/actions/patch-card-resource.d.mts +9 -0
- package/dist/actions/patch-card-resource.d.mts.map +1 -0
- package/dist/actions/patch-card-resource.mjs +43 -0
- package/dist/actions/patch-card-resource.mjs.map +1 -0
- package/dist/actions/patch-custom-field-option.cjs +35 -0
- package/dist/actions/patch-custom-field-option.cjs.map +1 -0
- package/dist/actions/patch-custom-field-option.d.cts +9 -0
- package/dist/actions/patch-custom-field-option.d.cts.map +1 -0
- package/dist/actions/patch-custom-field-option.d.mts +9 -0
- package/dist/actions/patch-custom-field-option.d.mts.map +1 -0
- package/dist/actions/patch-custom-field-option.mjs +32 -0
- package/dist/actions/patch-custom-field-option.mjs.map +1 -0
- package/dist/actions/patch-gl-account-resource.cjs +38 -0
- package/dist/actions/patch-gl-account-resource.cjs.map +1 -0
- package/dist/actions/patch-gl-account-resource.d.cts +9 -0
- package/dist/actions/patch-gl-account-resource.d.cts.map +1 -0
- package/dist/actions/patch-gl-account-resource.d.mts +9 -0
- package/dist/actions/patch-gl-account-resource.d.mts.map +1 -0
- package/dist/actions/patch-gl-account-resource.mjs +37 -0
- package/dist/actions/patch-gl-account-resource.mjs.map +1 -0
- package/dist/actions/patch-inventory-item-field.cjs +25 -0
- package/dist/actions/patch-inventory-item-field.cjs.map +1 -0
- package/dist/actions/patch-inventory-item-field.d.cts +9 -0
- package/dist/actions/patch-inventory-item-field.d.cts.map +1 -0
- package/dist/actions/patch-inventory-item-field.d.mts +9 -0
- package/dist/actions/patch-inventory-item-field.d.mts.map +1 -0
- package/dist/actions/patch-inventory-item-field.mjs +22 -0
- package/dist/actions/patch-inventory-item-field.mjs.map +1 -0
- package/dist/actions/post-accounting-accounts.cjs +47 -0
- package/dist/actions/post-accounting-accounts.cjs.map +1 -0
- package/dist/actions/post-accounting-accounts.d.cts +9 -0
- package/dist/actions/post-accounting-accounts.d.cts.map +1 -0
- package/dist/actions/post-accounting-accounts.d.mts +9 -0
- package/dist/actions/post-accounting-accounts.d.mts.map +1 -0
- package/dist/actions/post-accounting-accounts.mjs +46 -0
- package/dist/actions/post-accounting-accounts.mjs.map +1 -0
- package/dist/actions/post-accounting-connection.cjs +30 -0
- package/dist/actions/post-accounting-connection.cjs.map +1 -0
- package/dist/actions/post-accounting-connection.d.cts +9 -0
- package/dist/actions/post-accounting-connection.d.cts.map +1 -0
- package/dist/actions/post-accounting-connection.d.mts +9 -0
- package/dist/actions/post-accounting-connection.d.mts.map +1 -0
- package/dist/actions/post-accounting-connection.mjs +29 -0
- package/dist/actions/post-accounting-connection.mjs.map +1 -0
- package/dist/actions/post-accounting-vendors.cjs +38 -0
- package/dist/actions/post-accounting-vendors.cjs.map +1 -0
- package/dist/actions/post-accounting-vendors.d.cts +9 -0
- package/dist/actions/post-accounting-vendors.d.cts.map +1 -0
- package/dist/actions/post-accounting-vendors.d.mts +9 -0
- package/dist/actions/post-accounting-vendors.d.mts.map +1 -0
- package/dist/actions/post-accounting-vendors.mjs +37 -0
- package/dist/actions/post-accounting-vendors.mjs.map +1 -0
- package/dist/actions/post-inventory-item-options.cjs +26 -0
- package/dist/actions/post-inventory-item-options.cjs.map +1 -0
- package/dist/actions/post-inventory-item-options.d.cts +9 -0
- package/dist/actions/post-inventory-item-options.d.cts.map +1 -0
- package/dist/actions/post-inventory-item-options.d.mts +9 -0
- package/dist/actions/post-inventory-item-options.d.mts.map +1 -0
- package/dist/actions/post-inventory-item-options.mjs +25 -0
- package/dist/actions/post-inventory-item-options.mjs.map +1 -0
- package/dist/actions/post-physical-card.cjs +59 -0
- package/dist/actions/post-physical-card.cjs.map +1 -0
- package/dist/actions/post-physical-card.d.cts +9 -0
- package/dist/actions/post-physical-card.d.cts.map +1 -0
- package/dist/actions/post-physical-card.d.mts +9 -0
- package/dist/actions/post-physical-card.d.mts.map +1 -0
- package/dist/actions/post-physical-card.mjs +56 -0
- package/dist/actions/post-physical-card.mjs.map +1 -0
- package/dist/actions/reactivate-accounting-connection.cjs +26 -0
- package/dist/actions/reactivate-accounting-connection.cjs.map +1 -0
- package/dist/actions/reactivate-accounting-connection.d.cts +9 -0
- package/dist/actions/reactivate-accounting-connection.d.cts.map +1 -0
- package/dist/actions/reactivate-accounting-connection.d.mts +9 -0
- package/dist/actions/reactivate-accounting-connection.d.mts.map +1 -0
- package/dist/actions/reactivate-accounting-connection.mjs +25 -0
- package/dist/actions/reactivate-accounting-connection.mjs.map +1 -0
- package/dist/actions/reactivate-user.cjs +16 -0
- package/dist/actions/reactivate-user.cjs.map +1 -0
- package/dist/actions/reactivate-user.d.cts +9 -0
- package/dist/actions/reactivate-user.d.cts.map +1 -0
- package/dist/actions/reactivate-user.d.mts +9 -0
- package/dist/actions/reactivate-user.d.mts.map +1 -0
- package/dist/actions/reactivate-user.mjs +13 -0
- package/dist/actions/reactivate-user.mjs.map +1 -0
- package/dist/actions/submit-reimbursement-receipt.cjs +144 -0
- package/dist/actions/submit-reimbursement-receipt.cjs.map +1 -0
- package/dist/actions/submit-reimbursement-receipt.d.cts +9 -0
- package/dist/actions/submit-reimbursement-receipt.d.cts.map +1 -0
- package/dist/actions/submit-reimbursement-receipt.d.mts +9 -0
- package/dist/actions/submit-reimbursement-receipt.d.mts.map +1 -0
- package/dist/actions/submit-reimbursement-receipt.mjs +143 -0
- package/dist/actions/submit-reimbursement-receipt.mjs.map +1 -0
- package/dist/actions/suspend-card.cjs +19 -0
- package/dist/actions/suspend-card.cjs.map +1 -0
- package/dist/actions/suspend-card.d.cts +9 -0
- package/dist/actions/suspend-card.d.cts.map +1 -0
- package/dist/actions/suspend-card.d.mts +9 -0
- package/dist/actions/suspend-card.d.mts.map +1 -0
- package/dist/actions/suspend-card.mjs +16 -0
- package/dist/actions/suspend-card.mjs.map +1 -0
- package/dist/actions/terminate-card.cjs +19 -0
- package/dist/actions/terminate-card.cjs.map +1 -0
- package/dist/actions/terminate-card.d.cts +9 -0
- package/dist/actions/terminate-card.d.cts.map +1 -0
- package/dist/actions/terminate-card.d.mts +9 -0
- package/dist/actions/terminate-card.d.mts.map +1 -0
- package/dist/actions/terminate-card.mjs +16 -0
- package/dist/actions/terminate-card.mjs.map +1 -0
- package/dist/actions/update-accounting-field.cjs +48 -0
- package/dist/actions/update-accounting-field.cjs.map +1 -0
- package/dist/actions/update-accounting-field.d.cts +9 -0
- package/dist/actions/update-accounting-field.d.cts.map +1 -0
- package/dist/actions/update-accounting-field.d.mts +9 -0
- package/dist/actions/update-accounting-field.d.mts.map +1 -0
- package/dist/actions/update-accounting-field.mjs +47 -0
- package/dist/actions/update-accounting-field.mjs.map +1 -0
- package/dist/actions/update-accounting-inventory-item-options.cjs +25 -0
- package/dist/actions/update-accounting-inventory-item-options.cjs.map +1 -0
- package/dist/actions/update-accounting-inventory-item-options.d.cts +9 -0
- package/dist/actions/update-accounting-inventory-item-options.d.cts.map +1 -0
- package/dist/actions/update-accounting-inventory-item-options.d.mts +9 -0
- package/dist/actions/update-accounting-inventory-item-options.d.mts.map +1 -0
- package/dist/actions/update-accounting-inventory-item-options.mjs +22 -0
- package/dist/actions/update-accounting-inventory-item-options.mjs.map +1 -0
- package/dist/actions/update-accounting-tax-code-options.cjs +27 -0
- package/dist/actions/update-accounting-tax-code-options.cjs.map +1 -0
- package/dist/actions/update-accounting-tax-code-options.d.cts +9 -0
- package/dist/actions/update-accounting-tax-code-options.d.cts.map +1 -0
- package/dist/actions/update-accounting-tax-code-options.d.mts +9 -0
- package/dist/actions/update-accounting-tax-code-options.d.mts.map +1 -0
- package/dist/actions/update-accounting-tax-code-options.mjs +24 -0
- package/dist/actions/update-accounting-tax-code-options.mjs.map +1 -0
- package/dist/actions/update-accounting-tax-code.cjs +25 -0
- package/dist/actions/update-accounting-tax-code.cjs.map +1 -0
- package/dist/actions/update-accounting-tax-code.d.cts +9 -0
- package/dist/actions/update-accounting-tax-code.d.cts.map +1 -0
- package/dist/actions/update-accounting-tax-code.d.mts +9 -0
- package/dist/actions/update-accounting-tax-code.d.mts.map +1 -0
- package/dist/actions/update-accounting-tax-code.mjs +22 -0
- package/dist/actions/update-accounting-tax-code.mjs.map +1 -0
- package/dist/actions/update-accounting-tax-rate.cjs +28 -0
- package/dist/actions/update-accounting-tax-rate.cjs.map +1 -0
- package/dist/actions/update-accounting-tax-rate.d.cts +9 -0
- package/dist/actions/update-accounting-tax-rate.d.cts.map +1 -0
- package/dist/actions/update-accounting-tax-rate.d.mts +9 -0
- package/dist/actions/update-accounting-tax-rate.d.mts.map +1 -0
- package/dist/actions/update-accounting-tax-rate.mjs +25 -0
- package/dist/actions/update-accounting-tax-rate.mjs.map +1 -0
- package/dist/actions/update-accounting-vendor.cjs +38 -0
- package/dist/actions/update-accounting-vendor.cjs.map +1 -0
- package/dist/actions/update-accounting-vendor.d.cts +9 -0
- package/dist/actions/update-accounting-vendor.d.cts.map +1 -0
- package/dist/actions/update-accounting-vendor.d.mts +9 -0
- package/dist/actions/update-accounting-vendor.d.mts.map +1 -0
- package/dist/actions/update-accounting-vendor.mjs +37 -0
- package/dist/actions/update-accounting-vendor.mjs.map +1 -0
- package/dist/actions/update-card-limit.cjs +42 -0
- package/dist/actions/update-card-limit.cjs.map +1 -0
- package/dist/actions/update-card-limit.d.cts +9 -0
- package/dist/actions/update-card-limit.d.cts.map +1 -0
- package/dist/actions/update-card-limit.d.mts +9 -0
- package/dist/actions/update-card-limit.d.mts.map +1 -0
- package/dist/actions/update-card-limit.mjs +41 -0
- package/dist/actions/update-card-limit.mjs.map +1 -0
- package/dist/actions/update-department.cjs +24 -0
- package/dist/actions/update-department.cjs.map +1 -0
- package/dist/actions/update-department.d.cts +9 -0
- package/dist/actions/update-department.d.cts.map +1 -0
- package/dist/actions/update-department.d.mts +9 -0
- package/dist/actions/update-department.d.mts.map +1 -0
- package/dist/actions/update-department.mjs +21 -0
- package/dist/actions/update-department.mjs.map +1 -0
- package/dist/actions/update-limits.cjs +126 -0
- package/dist/actions/update-limits.cjs.map +1 -0
- package/dist/actions/update-limits.d.cts +9 -0
- package/dist/actions/update-limits.d.cts.map +1 -0
- package/dist/actions/update-limits.d.mts +9 -0
- package/dist/actions/update-limits.d.mts.map +1 -0
- package/dist/actions/update-limits.mjs +125 -0
- package/dist/actions/update-limits.mjs.map +1 -0
- package/dist/actions/update-user.cjs +35 -0
- package/dist/actions/update-user.cjs.map +1 -0
- package/dist/actions/update-user.d.cts +9 -0
- package/dist/actions/update-user.d.cts.map +1 -0
- package/dist/actions/update-user.d.mts +9 -0
- package/dist/actions/update-user.d.mts.map +1 -0
- package/dist/actions/update-user.mjs +32 -0
- package/dist/actions/update-user.mjs.map +1 -0
- package/dist/actions/upload-new-options.cjs +40 -0
- package/dist/actions/upload-new-options.cjs.map +1 -0
- package/dist/actions/upload-new-options.d.cts +9 -0
- package/dist/actions/upload-new-options.d.cts.map +1 -0
- package/dist/actions/upload-new-options.d.mts +9 -0
- package/dist/actions/upload-new-options.d.mts.map +1 -0
- package/dist/actions/upload-new-options.mjs +39 -0
- package/dist/actions/upload-new-options.mjs.map +1 -0
- package/dist/actions/upload-tax-code-options.cjs +28 -0
- package/dist/actions/upload-tax-code-options.cjs.map +1 -0
- package/dist/actions/upload-tax-code-options.d.cts +9 -0
- package/dist/actions/upload-tax-code-options.d.cts.map +1 -0
- package/dist/actions/upload-tax-code-options.d.mts +9 -0
- package/dist/actions/upload-tax-code-options.d.mts.map +1 -0
- package/dist/actions/upload-tax-code-options.mjs +27 -0
- package/dist/actions/upload-tax-code-options.mjs.map +1 -0
- package/dist/actions/upload-tax-rates.cjs +32 -0
- package/dist/actions/upload-tax-rates.cjs.map +1 -0
- package/dist/actions/upload-tax-rates.d.cts +9 -0
- package/dist/actions/upload-tax-rates.d.cts.map +1 -0
- package/dist/actions/upload-tax-rates.d.mts +9 -0
- package/dist/actions/upload-tax-rates.d.mts.map +1 -0
- package/dist/actions/upload-tax-rates.mjs +31 -0
- package/dist/actions/upload-tax-rates.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +182 -0
- package/dist/index.d.cts +91 -0
- package/dist/index.d.mts +91 -4
- package/dist/index.mjs +92 -7
- package/package.json +31 -58
- package/LICENSE +0 -21
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -4
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/ramp-app.credential-set-Lfv-WYR0.mjs +0 -24
- package/dist/ramp-app.credential-set-cr5rSCuj.d.mts +0 -51
- package/dist/ramp.credential-set-IqskZBeS.mjs +0 -65
- package/dist/schemas/index.d.mts +0 -2101
- package/dist/schemas/index.mjs +0 -99
- package/dist/transactions-BbD9dl3x.mjs +0 -1005
- package/dist/upload-receipt.operation-ClJzqNb-.d.mts +0 -3907
- package/dist/upload-receipt.operation-DNDW2WTQ.mjs +0 -2322
|
@@ -1,2322 +0,0 @@
|
|
|
1
|
-
import { n as rampCredentialSet } from "./ramp.credential-set-IqskZBeS.mjs";
|
|
2
|
-
import { $ as rampWebhookSubscriptionUpdateInputSchema, $n as rampEntitySchema, $t as rampCardListInputSchema, A as rampTransferSchema, An as rampAccountingSyncCreateInputSchema, At as rampDepartmentUpdateInputSchema, B as rampPurchaseOrderSchema, Bn as rampAccountingVendorListInputSchema, Bt as rampLocationDeleteInputSchema, C as rampCashbackGetInputSchema, Cn as rampAccountingFieldSchema, Ct as rampUserUpdateInputSchema, D as rampTransferGetInputSchema, Dn as rampAccountingSubsidiaryListSchema, Dt as rampDepartmentListInputSchema, E as rampCashbackSchema, En as rampAccountingSubsidiaryListInputSchema, Et as rampDepartmentGetInputSchema, F as rampApplicationSchema, Fn as rampAccountingTrackingCategoryGetInputSchema, Ft as rampLimitListInputSchema, G as rampUnifiedRequestSchema, Gn as rampGlAccountListInputSchema, Gt as rampLocationUpdateInputSchema, H as rampUnifiedRequestGetInputSchema, Hn as rampAccountingVendorSchema, Ht as rampLocationListInputSchema, In as rampAccountingTrackingCategoryListInputSchema, It as rampLimitListSchema, J as rampWebhookSubscriptionDeleteInputSchema, Jn as rampGlAccountUploadInputSchema, Jt as rampMemoListSchema, Kn as rampGlAccountListSchema, Kt as rampMemoGetInputSchema, L as rampPurchaseOrderGetInputSchema, Ln as rampAccountingTrackingCategoryListSchema, Lt as rampLimitSchema, M as rampApplicationGetInputSchema, Mn as rampAccountingSyncListInputSchema, Mt as rampLimitDeleteInputSchema, N as rampApplicationListInputSchema, Nn as rampAccountingSyncListSchema, Nt as rampLimitGetInputSchema, O as rampTransferListInputSchema, On as rampAccountingSubsidiarySchema, Ot as rampDepartmentListSchema, P as rampApplicationListSchema, Pn as rampAccountingSyncSchema, Q as rampWebhookSubscriptionSchema, Qn as rampEntityListSchema, Qt as rampCardGetInputSchema, R as rampPurchaseOrderListInputSchema, Rn as rampAccountingTrackingCategorySchema, Rt as rampLimitUpdateInputSchema, S as rampStatementSchema, Sn as rampAccountingFieldOptionUploadInputSchema, T as rampCashbackListSchema, Tn as rampAccountingSubsidiaryGetInputSchema, Tt as rampDepartmentDeleteInputSchema, U as rampUnifiedRequestListInputSchema, Un as rampAccountingVendorUploadInputSchema, Ut as rampLocationListSchema, Vn as rampAccountingVendorListSchema, Vt as rampLocationGetInputSchema, W as rampUnifiedRequestListSchema, Wn as rampGlAccountGetInputSchema, Wt as rampLocationSchema, X as rampWebhookSubscriptionListInputSchema, Xn as rampEntityGetInputSchema, Y as rampWebhookSubscriptionGetInputSchema, Yn as rampBusinessSchema, Yt as rampMemoSchema, Z as rampWebhookSubscriptionListSchema, Zn as rampEntityListInputSchema, Zt as rampCardFundTransferSchema, _ as rampReceiptSchema, _n as rampAccountingFieldListInputSchema, _r as rampBillListSchema, _t as rampUserInviteInputSchema, an as rampCardProgramSchema, ar as rampSpendRequestCommentSchema, at as rampVendorBankAccountSchema, b as rampStatementListInputSchema, bn as rampAccountingFieldOptionListSchema, c as rampReimbursementListSchema, cn as rampCardUpdateInputSchema, cr as rampSpendRequestListSchema, ct as rampVendorDeleteInputSchema, d as rampReceiptGetInputSchema, dn as rampSuspendCardInputSchema, dr as rampBillApproveInputSchema, dt as rampVendorListSchema, en as rampCardListSchema, er as rampSpendProgramGetInputSchema, et as rampVendorBankAccountCreateInputSchema, f as rampReceiptIntegrationOptInInputSchema, fn as rampTerminateCardInputSchema, fr as rampBillCancelInputSchema, ft as rampVendorSchema, g as rampReceiptListSchema, gn as rampAccountingFieldGetInputSchema, gr as rampBillListInputSchema, gt as rampUserGetInputSchema, h as rampReceiptListInputSchema, hn as rampAccountingFieldDeleteInputSchema, ht as rampUserDeactivateInputSchema, i as rampTransactionSchema, in as rampCardProgramListSchema, ir as rampSpendRequestCommentCreateInputSchema, it as rampVendorBankAccountListSchema, jn as rampAccountingSyncGetInputSchema, jt as rampLimitCreateInputSchema, k as rampTransferListSchema, kn as rampAccountingSubsidiaryUploadInputSchema, kt as rampDepartmentSchema, l as rampReimbursementSchema, ln as rampCreatePhysicalCardInputSchema, lr as rampSpendRequestSchema, lt as rampVendorGetInputSchema, m as rampReceiptIntegrationOptedInSchema, mn as rampAccountingFieldCreateInputSchema, mr as rampBillGetInputSchema, mt as rampDeferredTaskSchema, n as rampTransactionListInputSchema, nn as rampCardProgramGetInputSchema, nr as rampSpendProgramListSchema, nt as rampVendorBankAccountGetInputSchema, o as rampReimbursementGetInputSchema, on as rampCardSchema, or as rampSpendRequestGetInputSchema, ot as rampVendorBankAccountUpdateInputSchema, p as rampReceiptIntegrationOptOutInputSchema, pn as rampUnsuspendCardInputSchema, pr as rampBillCreateInputSchema, pt as rampVendorUpdateInputSchema, q as rampWebhookSubscriptionCreateInputSchema, qn as rampGlAccountSchema, qt as rampMemoListInputSchema, r as rampTransactionListSchema, rn as rampCardProgramListInputSchema, rr as rampSpendProgramSchema, rt as rampVendorBankAccountListInputSchema, s as rampReimbursementListInputSchema, sr as rampSpendRequestListInputSchema, st as rampVendorCreateInputSchema, t as rampTransactionGetInputSchema, tn as rampCardProgramCreateInputSchema, tr as rampSpendProgramListInputSchema, tt as rampVendorBankAccountDeleteInputSchema, un as rampCreateVirtualCardInputSchema, ut as rampVendorListInputSchema, v as rampReceiptUploadInputSchema, vn as rampAccountingFieldListSchema, vr as rampBillRejectInputSchema, vt as rampUserListInputSchema, w as rampCashbackListInputSchema, wn as rampAccountingFieldUpdateInputSchema, wt as rampDepartmentCreateInputSchema, x as rampStatementListSchema, xr as rampBillUpdateInputSchema, xt as rampUserSchema, y as rampStatementGetInputSchema, yn as rampAccountingFieldOptionListInputSchema, yr as rampBillSchema, yt as rampUserListSchema, z as rampPurchaseOrderListSchema, zn as rampAccountingVendorGetInputSchema, zt as rampLocationCreateInputSchema } from "./transactions-BbD9dl3x.mjs";
|
|
3
|
-
import { Operation } from "@keystrokehq/core";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
import { CredentialRevokedError } from "@keystrokehq/core/errors";
|
|
6
|
-
|
|
7
|
-
//#region ../../packages/integration-authoring/src/error-normalizing-proxy.ts
|
|
8
|
-
function isThenable(value) {
|
|
9
|
-
return !!value && typeof value === "object" && "then" in value && typeof value.then === "function";
|
|
10
|
-
}
|
|
11
|
-
function createErrorNormalizingProxy(target, normalizeError, path = []) {
|
|
12
|
-
return new Proxy(target, { get(obj, property, receiver) {
|
|
13
|
-
const value = Reflect.get(obj, property, receiver);
|
|
14
|
-
if (typeof value === "function") return (...args) => {
|
|
15
|
-
try {
|
|
16
|
-
const result = value.apply(obj, args);
|
|
17
|
-
if (isThenable(result)) return result.then(void 0, (error) => {
|
|
18
|
-
throw normalizeError(error, { methodPath: [...path, String(property)].join(".") });
|
|
19
|
-
});
|
|
20
|
-
return result;
|
|
21
|
-
} catch (error) {
|
|
22
|
-
throw normalizeError(error, { methodPath: [...path, String(property)].join(".") });
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
if (value && typeof value === "object") return createErrorNormalizingProxy(value, normalizeError, [...path, String(property)]);
|
|
26
|
-
return value;
|
|
27
|
-
} });
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region src/utils/client.ts
|
|
32
|
-
const RAMP_API_HOSTS = {
|
|
33
|
-
production: "https://api.ramp.com",
|
|
34
|
-
sandbox: "https://demo-api.ramp.com"
|
|
35
|
-
};
|
|
36
|
-
const RAMP_API_BASE_PATH = "/developer/v1";
|
|
37
|
-
const DEFAULT_TIMEOUT_MS = 3e4;
|
|
38
|
-
const MAX_RETRIES = 3;
|
|
39
|
-
const BASE_RETRY_DELAY_MS = 500;
|
|
40
|
-
const CONNECT_HINT = "If you haven't connected Ramp yet, run `keystroke connect ramp`.";
|
|
41
|
-
/**
|
|
42
|
-
* Structured Ramp error. The `kind` discriminator tells downstream consumers
|
|
43
|
-
* how to react (retry, prompt re-auth, surface validation message, etc.).
|
|
44
|
-
*/
|
|
45
|
-
var RampApiError = class extends Error {
|
|
46
|
-
kind;
|
|
47
|
-
status;
|
|
48
|
-
body;
|
|
49
|
-
errorCode;
|
|
50
|
-
retryAfterMs;
|
|
51
|
-
constructor(init) {
|
|
52
|
-
super(init.message, init.cause !== void 0 ? { cause: init.cause } : void 0);
|
|
53
|
-
this.name = "RampApiError";
|
|
54
|
-
this.kind = init.kind;
|
|
55
|
-
this.status = init.status;
|
|
56
|
-
this.body = init.body;
|
|
57
|
-
this.errorCode = init.errorCode;
|
|
58
|
-
this.retryAfterMs = init.retryAfterMs;
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
function isRecord(value) {
|
|
62
|
-
return typeof value === "object" && value !== null;
|
|
63
|
-
}
|
|
64
|
-
function toQueryString(query) {
|
|
65
|
-
if (!query) return "";
|
|
66
|
-
const params = new URLSearchParams();
|
|
67
|
-
for (const [key, value] of Object.entries(query)) {
|
|
68
|
-
if (value === void 0 || value === null) continue;
|
|
69
|
-
if (Array.isArray(value)) {
|
|
70
|
-
if (value.length === 0) continue;
|
|
71
|
-
for (const item of value) params.append(key, String(item));
|
|
72
|
-
continue;
|
|
73
|
-
}
|
|
74
|
-
params.set(key, String(value));
|
|
75
|
-
}
|
|
76
|
-
const stringified = params.toString();
|
|
77
|
-
return stringified.length > 0 ? `?${stringified}` : "";
|
|
78
|
-
}
|
|
79
|
-
function classifyStatus(status, body) {
|
|
80
|
-
if (status === 401) return "auth_revoked";
|
|
81
|
-
if (status === 403) return (extractErrorMessage(body)?.toLowerCase() ?? "").includes("scope") ? "missing_scope" : "auth_revoked";
|
|
82
|
-
if (status === 404) return "not_found";
|
|
83
|
-
if (status === 409) return "conflict";
|
|
84
|
-
if (status === 422) return "validation";
|
|
85
|
-
if (status === 429) return "rate_limited";
|
|
86
|
-
if (status >= 500) return "server_error";
|
|
87
|
-
if (status >= 400) return "validation";
|
|
88
|
-
return "unknown";
|
|
89
|
-
}
|
|
90
|
-
function extractErrorMessage(body) {
|
|
91
|
-
if (!isRecord(body)) return void 0;
|
|
92
|
-
const errorV2 = isRecord(body.error_v2) ? body.error_v2 : void 0;
|
|
93
|
-
if (errorV2 && typeof errorV2.message === "string") return errorV2.message;
|
|
94
|
-
if (typeof body.message === "string") return body.message;
|
|
95
|
-
if (typeof body.error === "string") return body.error;
|
|
96
|
-
}
|
|
97
|
-
function extractErrorCode(body) {
|
|
98
|
-
if (!isRecord(body)) return void 0;
|
|
99
|
-
const errorV2 = isRecord(body.error_v2) ? body.error_v2 : void 0;
|
|
100
|
-
if (errorV2 && typeof errorV2.error_code === "string") return errorV2.error_code;
|
|
101
|
-
}
|
|
102
|
-
function parseRetryAfter(headerValue) {
|
|
103
|
-
if (!headerValue) return void 0;
|
|
104
|
-
const asNumber = Number(headerValue);
|
|
105
|
-
if (Number.isFinite(asNumber) && asNumber >= 0) return asNumber * 1e3;
|
|
106
|
-
const asDate = Date.parse(headerValue);
|
|
107
|
-
if (!Number.isNaN(asDate)) return Math.max(0, asDate - Date.now());
|
|
108
|
-
}
|
|
109
|
-
async function sleepDefault(ms) {
|
|
110
|
-
if (ms <= 0) return;
|
|
111
|
-
await new Promise((resolve) => setTimeout(resolve, ms));
|
|
112
|
-
}
|
|
113
|
-
function shouldRetry(kind, attempt, maxRetries) {
|
|
114
|
-
if (attempt >= maxRetries) return false;
|
|
115
|
-
return kind === "rate_limited" || kind === "server_error" || kind === "timeout";
|
|
116
|
-
}
|
|
117
|
-
function isAuthRevoked(error) {
|
|
118
|
-
return error instanceof RampApiError && error.kind === "auth_revoked";
|
|
119
|
-
}
|
|
120
|
-
function normalizeRampError(error, context) {
|
|
121
|
-
if (isAuthRevoked(error)) return new CredentialRevokedError(rampCredentialSet.id, `Ramp authentication failed while calling \`${context.methodPath}\`. The stored credentials for ${rampCredentialSet.id} may be revoked or expired. ${CONNECT_HINT}`);
|
|
122
|
-
if (error instanceof RampApiError) return new Error(`Ramp API call failed while calling \`${context.methodPath}\` (${error.status} ${error.kind}): ${error.message}`, { cause: error });
|
|
123
|
-
if (error instanceof Error) return new Error(`Ramp API call failed while calling \`${context.methodPath}\`: ${error.message}`, { cause: error });
|
|
124
|
-
return /* @__PURE__ */ new Error(`Ramp API call failed while calling \`${context.methodPath}\`.`);
|
|
125
|
-
}
|
|
126
|
-
function createRampApiClient(accessToken, options = {}) {
|
|
127
|
-
const environment = options.environment ?? "production";
|
|
128
|
-
const baseUrl = `${RAMP_API_HOSTS[environment]}${RAMP_API_BASE_PATH}`;
|
|
129
|
-
const fetchImpl = options.fetchImpl ?? fetch;
|
|
130
|
-
const timeoutMs = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
|
131
|
-
const maxRetries = options.maxRetries ?? MAX_RETRIES;
|
|
132
|
-
const sleep = options.sleep ?? sleepDefault;
|
|
133
|
-
async function request(path, init = {}) {
|
|
134
|
-
const url = `${baseUrl}${path}${toQueryString(init.query)}`;
|
|
135
|
-
const method = init.method ?? "GET";
|
|
136
|
-
const headers = {
|
|
137
|
-
Authorization: `Bearer ${accessToken}`,
|
|
138
|
-
Accept: "application/json",
|
|
139
|
-
...init.headers
|
|
140
|
-
};
|
|
141
|
-
let body;
|
|
142
|
-
if (init.body !== void 0) if (init.multipart) {
|
|
143
|
-
if (!(init.body instanceof FormData)) throw new TypeError("RampApiClient: multipart=true requires body to be a FormData instance");
|
|
144
|
-
body = init.body;
|
|
145
|
-
} else {
|
|
146
|
-
headers["Content-Type"] = "application/json";
|
|
147
|
-
body = JSON.stringify(init.body);
|
|
148
|
-
}
|
|
149
|
-
if (init.idempotencyKey !== void 0) headers["Idempotency-Key"] = init.idempotencyKey;
|
|
150
|
-
let attempt = 0;
|
|
151
|
-
for (;;) {
|
|
152
|
-
const attemptTimeoutMs = init.timeoutMs ?? timeoutMs;
|
|
153
|
-
const controller = new AbortController();
|
|
154
|
-
const timer = setTimeout(() => controller.abort(), attemptTimeoutMs);
|
|
155
|
-
let response;
|
|
156
|
-
try {
|
|
157
|
-
response = await fetchImpl(url, {
|
|
158
|
-
method,
|
|
159
|
-
headers,
|
|
160
|
-
...body !== void 0 ? { body } : {},
|
|
161
|
-
signal: controller.signal
|
|
162
|
-
});
|
|
163
|
-
} catch (error) {
|
|
164
|
-
clearTimeout(timer);
|
|
165
|
-
const isAbort = error instanceof Error && (error.name === "AbortError" || error.message.includes("aborted"));
|
|
166
|
-
const kind = isAbort ? "timeout" : "network";
|
|
167
|
-
if (shouldRetry(kind, attempt, maxRetries)) {
|
|
168
|
-
attempt += 1;
|
|
169
|
-
await sleep(BASE_RETRY_DELAY_MS * 2 ** (attempt - 1));
|
|
170
|
-
continue;
|
|
171
|
-
}
|
|
172
|
-
throw new RampApiError({
|
|
173
|
-
kind,
|
|
174
|
-
status: 0,
|
|
175
|
-
message: isAbort ? `Request to \`${path}\` timed out after ${attemptTimeoutMs}ms` : `Request to \`${path}\` failed: ${error.message ?? String(error)}`,
|
|
176
|
-
cause: error
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
clearTimeout(timer);
|
|
180
|
-
if (init.raw) {
|
|
181
|
-
if (!response.ok) {
|
|
182
|
-
const raw = await response.text();
|
|
183
|
-
throw new RampApiError({
|
|
184
|
-
kind: classifyStatus(response.status, raw),
|
|
185
|
-
status: response.status,
|
|
186
|
-
message: `HTTP ${response.status} for \`${path}\``,
|
|
187
|
-
body: raw
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
return response;
|
|
191
|
-
}
|
|
192
|
-
if (response.status === 204) return;
|
|
193
|
-
const parsedBody = (response.headers.get("content-type") ?? "").includes("application/json") ? await response.json().catch(() => void 0) : await response.text().catch(() => void 0);
|
|
194
|
-
if (!response.ok) {
|
|
195
|
-
const kind = classifyStatus(response.status, parsedBody);
|
|
196
|
-
const message = extractErrorMessage(parsedBody) ?? `HTTP ${response.status}`;
|
|
197
|
-
const errorCode = extractErrorCode(parsedBody);
|
|
198
|
-
const retryAfterMs = parseRetryAfter(response.headers.get("retry-after"));
|
|
199
|
-
if (shouldRetry(kind, attempt, maxRetries)) {
|
|
200
|
-
attempt += 1;
|
|
201
|
-
await sleep(retryAfterMs ?? BASE_RETRY_DELAY_MS * 2 ** (attempt - 1));
|
|
202
|
-
continue;
|
|
203
|
-
}
|
|
204
|
-
throw new RampApiError({
|
|
205
|
-
kind,
|
|
206
|
-
status: response.status,
|
|
207
|
-
message,
|
|
208
|
-
body: parsedBody,
|
|
209
|
-
errorCode,
|
|
210
|
-
retryAfterMs
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
return parsedBody;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
async function* paginate(path, init = {}) {
|
|
217
|
-
let cursor;
|
|
218
|
-
let loops = 0;
|
|
219
|
-
const hardStop = 1e4;
|
|
220
|
-
for (;;) {
|
|
221
|
-
const query = {
|
|
222
|
-
...init.query ?? {},
|
|
223
|
-
...cursor !== void 0 ? { start: cursor } : {},
|
|
224
|
-
...init.pageSize !== void 0 ? { page_size: init.pageSize } : {}
|
|
225
|
-
};
|
|
226
|
-
const response = await request(path, {
|
|
227
|
-
...init,
|
|
228
|
-
query,
|
|
229
|
-
method: "GET"
|
|
230
|
-
});
|
|
231
|
-
const data = response?.data ?? [];
|
|
232
|
-
for (const item of data) yield item;
|
|
233
|
-
const next = response?.page?.next;
|
|
234
|
-
if (!next) return;
|
|
235
|
-
cursor = next;
|
|
236
|
-
loops += 1;
|
|
237
|
-
if (loops >= hardStop) throw new RampApiError({
|
|
238
|
-
kind: "unknown",
|
|
239
|
-
status: 0,
|
|
240
|
-
message: `Ramp pagination exceeded ${hardStop} pages for \`${path}\` — refusing to continue`
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
return {
|
|
245
|
-
request,
|
|
246
|
-
paginate,
|
|
247
|
-
environment
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Public factory — callers normally use {@link createRampClient} below.
|
|
252
|
-
*/
|
|
253
|
-
function createRampClient(credentials, options = {}) {
|
|
254
|
-
const accessToken = credentials.RAMP_ACCESS_TOKEN.trim();
|
|
255
|
-
if (accessToken.length === 0) throw new Error(`Ramp authentication failed during client initialization. ${CONNECT_HINT}`);
|
|
256
|
-
return createErrorNormalizingProxy(createRampApiClient(accessToken, options), normalizeRampError);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
//#endregion
|
|
260
|
-
//#region src/utils/shared.ts
|
|
261
|
-
/**
|
|
262
|
-
* Drop `undefined` values from an object without losing type narrowing on the
|
|
263
|
-
* input keys.
|
|
264
|
-
*/
|
|
265
|
-
function omitUndefined(value) {
|
|
266
|
-
return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0));
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Reverse mapper: accepts our public `{ amountCents, currency }` shape and
|
|
270
|
-
* produces the Ramp wire shape `{ amount, currency_code }`. We preserve
|
|
271
|
-
* `amountCents` when it is `0`; only `undefined` is dropped.
|
|
272
|
-
*/
|
|
273
|
-
function unmapRampMoney(value) {
|
|
274
|
-
if (value === void 0) return void 0;
|
|
275
|
-
if (value.amountCents === void 0 || value.currency === void 0) return void 0;
|
|
276
|
-
return {
|
|
277
|
-
amount: value.amountCents,
|
|
278
|
-
currency_code: value.currency
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region src/operations/approve-bill.operation.ts
|
|
284
|
-
const approveBillOperation = new Operation({
|
|
285
|
-
credentialSets: [rampCredentialSet],
|
|
286
|
-
id: "ramp.approve-bill",
|
|
287
|
-
name: "Approve Bill",
|
|
288
|
-
description: "Approve a pending Ramp bill for payment.",
|
|
289
|
-
input: rampBillApproveInputSchema,
|
|
290
|
-
output: rampBillSchema,
|
|
291
|
-
needsApproval: true,
|
|
292
|
-
run: async (input, context) => {
|
|
293
|
-
const client = createRampClient(context.credentials.ramp);
|
|
294
|
-
await client.request(`/bills/${encodeURIComponent(input.billId)}/approve`, {
|
|
295
|
-
method: "POST",
|
|
296
|
-
body: omitUndefined({ memo: input.memo })
|
|
297
|
-
});
|
|
298
|
-
return rampBillSchema.parse(await client.request(`/bills/${encodeURIComponent(input.billId)}`));
|
|
299
|
-
}
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
//#endregion
|
|
303
|
-
//#region src/operations/cancel-bill.operation.ts
|
|
304
|
-
const cancelBillOperation = new Operation({
|
|
305
|
-
credentialSets: [rampCredentialSet],
|
|
306
|
-
id: "ramp.cancel-bill",
|
|
307
|
-
name: "Cancel Bill",
|
|
308
|
-
description: "Cancel a Ramp bill before it has been paid.",
|
|
309
|
-
input: rampBillCancelInputSchema,
|
|
310
|
-
output: rampBillSchema,
|
|
311
|
-
needsApproval: true,
|
|
312
|
-
run: async (input, context) => {
|
|
313
|
-
const client = createRampClient(context.credentials.ramp);
|
|
314
|
-
await client.request(`/bills/${encodeURIComponent(input.billId)}/cancel`, {
|
|
315
|
-
method: "POST",
|
|
316
|
-
body: omitUndefined({ memo: input.memo })
|
|
317
|
-
});
|
|
318
|
-
return rampBillSchema.parse(await client.request(`/bills/${encodeURIComponent(input.billId)}`));
|
|
319
|
-
}
|
|
320
|
-
});
|
|
321
|
-
|
|
322
|
-
//#endregion
|
|
323
|
-
//#region src/operations/comment-on-spend-request.operation.ts
|
|
324
|
-
const commentOnSpendRequestOperation = new Operation({
|
|
325
|
-
credentialSets: [rampCredentialSet],
|
|
326
|
-
id: "ramp.comment-on-spend-request",
|
|
327
|
-
name: "Comment On Spend Request",
|
|
328
|
-
description: "Post a comment on an existing Ramp spend request.",
|
|
329
|
-
input: rampSpendRequestCommentCreateInputSchema,
|
|
330
|
-
output: rampSpendRequestCommentSchema,
|
|
331
|
-
needsApproval: true,
|
|
332
|
-
run: async (input, context) => {
|
|
333
|
-
const client = createRampClient(context.credentials.ramp);
|
|
334
|
-
const { spendRequestId, body, idempotency_key } = input;
|
|
335
|
-
return rampSpendRequestCommentSchema.parse(await client.request(`/spend-requests/${encodeURIComponent(spendRequestId)}/comments`, {
|
|
336
|
-
method: "POST",
|
|
337
|
-
body: { body },
|
|
338
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
339
|
-
}));
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
|
|
343
|
-
//#endregion
|
|
344
|
-
//#region src/operations/create-accounting-field.operation.ts
|
|
345
|
-
const createAccountingFieldOperation = new Operation({
|
|
346
|
-
credentialSets: [rampCredentialSet],
|
|
347
|
-
id: "ramp.create-accounting-field",
|
|
348
|
-
name: "Create Accounting Field",
|
|
349
|
-
description: "Create a new custom accounting field.",
|
|
350
|
-
input: rampAccountingFieldCreateInputSchema,
|
|
351
|
-
output: rampAccountingFieldSchema,
|
|
352
|
-
needsApproval: true,
|
|
353
|
-
run: async (input, context) => {
|
|
354
|
-
const client = createRampClient(context.credentials.ramp);
|
|
355
|
-
return rampAccountingFieldSchema.parse(await client.request("/accounting/fields", {
|
|
356
|
-
method: "POST",
|
|
357
|
-
body: input
|
|
358
|
-
}));
|
|
359
|
-
}
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region src/operations/create-accounting-sync.operation.ts
|
|
364
|
-
const createAccountingSyncOperation = new Operation({
|
|
365
|
-
credentialSets: [rampCredentialSet],
|
|
366
|
-
id: "ramp.create-accounting-sync",
|
|
367
|
-
name: "Create Accounting Sync",
|
|
368
|
-
description: "Kick off a new accounting sync for a given sync type (BILL, CARD_TRANSACTION, REIMBURSEMENT, TRANSFER, STATEMENT_CREDIT).",
|
|
369
|
-
input: rampAccountingSyncCreateInputSchema,
|
|
370
|
-
output: rampAccountingSyncSchema,
|
|
371
|
-
needsApproval: true,
|
|
372
|
-
run: async (input, context) => {
|
|
373
|
-
const client = createRampClient(context.credentials.ramp);
|
|
374
|
-
const { idempotency_key, ...body } = input;
|
|
375
|
-
return rampAccountingSyncSchema.parse(await client.request("/accounting/syncs", {
|
|
376
|
-
method: "POST",
|
|
377
|
-
body,
|
|
378
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
379
|
-
}));
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
|
|
383
|
-
//#endregion
|
|
384
|
-
//#region src/operations/create-bill.operation.ts
|
|
385
|
-
const createBillOperation = new Operation({
|
|
386
|
-
credentialSets: [rampCredentialSet],
|
|
387
|
-
id: "ramp.create-bill",
|
|
388
|
-
name: "Create Bill",
|
|
389
|
-
description: "Create a new Ramp bill for a vendor.",
|
|
390
|
-
input: rampBillCreateInputSchema,
|
|
391
|
-
output: rampBillSchema,
|
|
392
|
-
needsApproval: true,
|
|
393
|
-
run: async (input, context) => {
|
|
394
|
-
const client = createRampClient(context.credentials.ramp);
|
|
395
|
-
const { idempotency_key, amount, line_items, ...rest } = input;
|
|
396
|
-
const body = omitUndefined({
|
|
397
|
-
...rest,
|
|
398
|
-
amount: unmapRampMoney(amount),
|
|
399
|
-
line_items: line_items?.map((line) => ({
|
|
400
|
-
description: line.description,
|
|
401
|
-
amount: {
|
|
402
|
-
amount: line.amountCents,
|
|
403
|
-
currency_code: line.currency
|
|
404
|
-
},
|
|
405
|
-
...line.accounting_category_id !== void 0 ? { accounting_category_id: line.accounting_category_id } : {}
|
|
406
|
-
}))
|
|
407
|
-
});
|
|
408
|
-
return rampBillSchema.parse(await client.request("/bills", {
|
|
409
|
-
method: "POST",
|
|
410
|
-
body,
|
|
411
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
412
|
-
}));
|
|
413
|
-
}
|
|
414
|
-
});
|
|
415
|
-
|
|
416
|
-
//#endregion
|
|
417
|
-
//#region src/operations/create-card-program.operation.ts
|
|
418
|
-
const createCardProgramOperation = new Operation({
|
|
419
|
-
credentialSets: [rampCredentialSet],
|
|
420
|
-
id: "ramp.create-card-program",
|
|
421
|
-
name: "Create Card Program",
|
|
422
|
-
description: "Create a new Ramp card program with default spending controls.",
|
|
423
|
-
input: rampCardProgramCreateInputSchema,
|
|
424
|
-
output: rampCardProgramSchema,
|
|
425
|
-
needsApproval: true,
|
|
426
|
-
run: async (input, context) => {
|
|
427
|
-
const client = createRampClient(context.credentials.ramp);
|
|
428
|
-
return rampCardProgramSchema.parse(await client.request("/card-programs", {
|
|
429
|
-
method: "POST",
|
|
430
|
-
body: input
|
|
431
|
-
}));
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
|
|
435
|
-
//#endregion
|
|
436
|
-
//#region src/operations/create-department.operation.ts
|
|
437
|
-
const createDepartmentOperation = new Operation({
|
|
438
|
-
credentialSets: [rampCredentialSet],
|
|
439
|
-
id: "ramp.create-department",
|
|
440
|
-
name: "Create Department",
|
|
441
|
-
description: "Create a new department in the Ramp org hierarchy.",
|
|
442
|
-
input: rampDepartmentCreateInputSchema,
|
|
443
|
-
output: rampDepartmentSchema,
|
|
444
|
-
needsApproval: true,
|
|
445
|
-
run: async (input, context) => {
|
|
446
|
-
const client = createRampClient(context.credentials.ramp);
|
|
447
|
-
return rampDepartmentSchema.parse(await client.request("/departments", {
|
|
448
|
-
method: "POST",
|
|
449
|
-
body: input
|
|
450
|
-
}));
|
|
451
|
-
}
|
|
452
|
-
});
|
|
453
|
-
|
|
454
|
-
//#endregion
|
|
455
|
-
//#region src/operations/create-limit.operation.ts
|
|
456
|
-
const createLimitOperation = new Operation({
|
|
457
|
-
credentialSets: [rampCredentialSet],
|
|
458
|
-
id: "ramp.create-limit",
|
|
459
|
-
name: "Create Limit",
|
|
460
|
-
description: "Create a new Ramp spending limit for a set of users.",
|
|
461
|
-
input: rampLimitCreateInputSchema,
|
|
462
|
-
output: rampLimitSchema,
|
|
463
|
-
needsApproval: true,
|
|
464
|
-
run: async (input, context) => {
|
|
465
|
-
const client = createRampClient(context.credentials.ramp);
|
|
466
|
-
const { idempotency_key, ...body } = input;
|
|
467
|
-
return rampLimitSchema.parse(await client.request("/limits", {
|
|
468
|
-
method: "POST",
|
|
469
|
-
body,
|
|
470
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
471
|
-
}));
|
|
472
|
-
}
|
|
473
|
-
});
|
|
474
|
-
|
|
475
|
-
//#endregion
|
|
476
|
-
//#region src/operations/create-location.operation.ts
|
|
477
|
-
const createLocationOperation = new Operation({
|
|
478
|
-
credentialSets: [rampCredentialSet],
|
|
479
|
-
id: "ramp.create-location",
|
|
480
|
-
name: "Create Location",
|
|
481
|
-
description: "Create a new location in the Ramp business.",
|
|
482
|
-
input: rampLocationCreateInputSchema,
|
|
483
|
-
output: rampLocationSchema,
|
|
484
|
-
needsApproval: true,
|
|
485
|
-
run: async (input, context) => {
|
|
486
|
-
const client = createRampClient(context.credentials.ramp);
|
|
487
|
-
return rampLocationSchema.parse(await client.request("/locations", {
|
|
488
|
-
method: "POST",
|
|
489
|
-
body: input
|
|
490
|
-
}));
|
|
491
|
-
}
|
|
492
|
-
});
|
|
493
|
-
|
|
494
|
-
//#endregion
|
|
495
|
-
//#region src/operations/create-physical-card.operation.ts
|
|
496
|
-
const createPhysicalCardOperation = new Operation({
|
|
497
|
-
credentialSets: [rampCredentialSet],
|
|
498
|
-
id: "ramp.create-physical-card",
|
|
499
|
-
name: "Create Physical Card",
|
|
500
|
-
description: "Order a physical Ramp card for an existing user.",
|
|
501
|
-
input: rampCreatePhysicalCardInputSchema,
|
|
502
|
-
output: rampDeferredTaskSchema,
|
|
503
|
-
needsApproval: true,
|
|
504
|
-
run: async (input, context) => {
|
|
505
|
-
const client = createRampClient(context.credentials.ramp);
|
|
506
|
-
const { idempotency_key, ...body } = input;
|
|
507
|
-
return rampDeferredTaskSchema.parse(await client.request("/cards/deferred/physical", {
|
|
508
|
-
method: "POST",
|
|
509
|
-
body,
|
|
510
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
511
|
-
}));
|
|
512
|
-
}
|
|
513
|
-
});
|
|
514
|
-
|
|
515
|
-
//#endregion
|
|
516
|
-
//#region src/operations/create-vendor.operation.ts
|
|
517
|
-
const createVendorOperation = new Operation({
|
|
518
|
-
credentialSets: [rampCredentialSet],
|
|
519
|
-
id: "ramp.create-vendor",
|
|
520
|
-
name: "Create Vendor",
|
|
521
|
-
description: "Create a new Ramp vendor record.",
|
|
522
|
-
input: rampVendorCreateInputSchema,
|
|
523
|
-
output: rampVendorSchema,
|
|
524
|
-
needsApproval: true,
|
|
525
|
-
run: async (input, context) => {
|
|
526
|
-
const client = createRampClient(context.credentials.ramp);
|
|
527
|
-
const { idempotency_key, ...body } = input;
|
|
528
|
-
return rampVendorSchema.parse(await client.request("/vendors", {
|
|
529
|
-
method: "POST",
|
|
530
|
-
body,
|
|
531
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
532
|
-
}));
|
|
533
|
-
}
|
|
534
|
-
});
|
|
535
|
-
|
|
536
|
-
//#endregion
|
|
537
|
-
//#region src/operations/create-vendor-bank-account.operation.ts
|
|
538
|
-
const createVendorBankAccountOperation = new Operation({
|
|
539
|
-
credentialSets: [rampCredentialSet],
|
|
540
|
-
id: "ramp.create-vendor-bank-account",
|
|
541
|
-
name: "Create Vendor Bank Account",
|
|
542
|
-
description: "Register a new bank account for an existing Ramp vendor.",
|
|
543
|
-
input: rampVendorBankAccountCreateInputSchema,
|
|
544
|
-
output: rampVendorBankAccountSchema,
|
|
545
|
-
needsApproval: true,
|
|
546
|
-
run: async (input, context) => {
|
|
547
|
-
const client = createRampClient(context.credentials.ramp);
|
|
548
|
-
const { idempotency_key, ...body } = input;
|
|
549
|
-
return rampVendorBankAccountSchema.parse(await client.request("/vendor-bank-accounts", {
|
|
550
|
-
method: "POST",
|
|
551
|
-
body,
|
|
552
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
553
|
-
}));
|
|
554
|
-
}
|
|
555
|
-
});
|
|
556
|
-
|
|
557
|
-
//#endregion
|
|
558
|
-
//#region src/operations/create-virtual-card.operation.ts
|
|
559
|
-
const createVirtualCardOperation = new Operation({
|
|
560
|
-
credentialSets: [rampCredentialSet],
|
|
561
|
-
id: "ramp.create-virtual-card",
|
|
562
|
-
name: "Create Virtual Card",
|
|
563
|
-
description: "Create a new virtual Ramp card for an existing user.",
|
|
564
|
-
input: rampCreateVirtualCardInputSchema,
|
|
565
|
-
output: rampDeferredTaskSchema,
|
|
566
|
-
needsApproval: true,
|
|
567
|
-
run: async (input, context) => {
|
|
568
|
-
const client = createRampClient(context.credentials.ramp);
|
|
569
|
-
const { idempotency_key, ...body } = input;
|
|
570
|
-
return rampDeferredTaskSchema.parse(await client.request("/cards/deferred/virtual", {
|
|
571
|
-
method: "POST",
|
|
572
|
-
body,
|
|
573
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
574
|
-
}));
|
|
575
|
-
}
|
|
576
|
-
});
|
|
577
|
-
|
|
578
|
-
//#endregion
|
|
579
|
-
//#region src/operations/create-webhook-subscription.operation.ts
|
|
580
|
-
const createWebhookSubscriptionOperation = new Operation({
|
|
581
|
-
credentialSets: [rampCredentialSet],
|
|
582
|
-
id: "ramp.create-webhook-subscription",
|
|
583
|
-
name: "Create Webhook Subscription",
|
|
584
|
-
description: "Register a new webhook subscription. Will trigger Ramp's URL-validation handshake.",
|
|
585
|
-
input: rampWebhookSubscriptionCreateInputSchema,
|
|
586
|
-
output: rampWebhookSubscriptionSchema,
|
|
587
|
-
needsApproval: true,
|
|
588
|
-
run: async (input, context) => {
|
|
589
|
-
const client = createRampClient(context.credentials.ramp);
|
|
590
|
-
const { idempotency_key, ...body } = input;
|
|
591
|
-
return rampWebhookSubscriptionSchema.parse(await client.request("/webhooks", {
|
|
592
|
-
method: "POST",
|
|
593
|
-
body,
|
|
594
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
595
|
-
}));
|
|
596
|
-
}
|
|
597
|
-
});
|
|
598
|
-
|
|
599
|
-
//#endregion
|
|
600
|
-
//#region src/operations/deactivate-user.operation.ts
|
|
601
|
-
const deactivateUserOperation = new Operation({
|
|
602
|
-
credentialSets: [rampCredentialSet],
|
|
603
|
-
id: "ramp.deactivate-user",
|
|
604
|
-
name: "Deactivate User",
|
|
605
|
-
description: "Deactivate a Ramp user by id. Returns the deferred task tracking the change.",
|
|
606
|
-
input: rampUserDeactivateInputSchema,
|
|
607
|
-
output: rampDeferredTaskSchema,
|
|
608
|
-
needsApproval: true,
|
|
609
|
-
run: async (input, context) => {
|
|
610
|
-
const client = createRampClient(context.credentials.ramp);
|
|
611
|
-
return rampDeferredTaskSchema.parse(await client.request(`/users/${encodeURIComponent(input.userId)}/deferred/termination`, {
|
|
612
|
-
method: "POST",
|
|
613
|
-
body: {}
|
|
614
|
-
}));
|
|
615
|
-
}
|
|
616
|
-
});
|
|
617
|
-
|
|
618
|
-
//#endregion
|
|
619
|
-
//#region src/operations/delete-accounting-field.operation.ts
|
|
620
|
-
const deleteAccountingFieldOperation = new Operation({
|
|
621
|
-
credentialSets: [rampCredentialSet],
|
|
622
|
-
id: "ramp.delete-accounting-field",
|
|
623
|
-
name: "Delete Accounting Field",
|
|
624
|
-
description: "Delete a custom accounting field by id.",
|
|
625
|
-
input: rampAccountingFieldDeleteInputSchema,
|
|
626
|
-
output: z.object({ success: z.boolean() }),
|
|
627
|
-
needsApproval: true,
|
|
628
|
-
run: async (input, context) => {
|
|
629
|
-
await createRampClient(context.credentials.ramp).request(`/accounting/fields/${encodeURIComponent(input.fieldId)}`, { method: "DELETE" });
|
|
630
|
-
return { success: true };
|
|
631
|
-
}
|
|
632
|
-
});
|
|
633
|
-
|
|
634
|
-
//#endregion
|
|
635
|
-
//#region src/operations/delete-department.operation.ts
|
|
636
|
-
const deleteDepartmentOperation = new Operation({
|
|
637
|
-
credentialSets: [rampCredentialSet],
|
|
638
|
-
id: "ramp.delete-department",
|
|
639
|
-
name: "Delete Department",
|
|
640
|
-
description: "Delete a Ramp department by id.",
|
|
641
|
-
input: rampDepartmentDeleteInputSchema,
|
|
642
|
-
output: z.object({ success: z.boolean() }),
|
|
643
|
-
needsApproval: true,
|
|
644
|
-
run: async (input, context) => {
|
|
645
|
-
await createRampClient(context.credentials.ramp).request(`/departments/${encodeURIComponent(input.departmentId)}`, { method: "DELETE" });
|
|
646
|
-
return { success: true };
|
|
647
|
-
}
|
|
648
|
-
});
|
|
649
|
-
|
|
650
|
-
//#endregion
|
|
651
|
-
//#region src/operations/delete-limit.operation.ts
|
|
652
|
-
const deleteLimitOperation = new Operation({
|
|
653
|
-
credentialSets: [rampCredentialSet],
|
|
654
|
-
id: "ramp.delete-limit",
|
|
655
|
-
name: "Delete Limit",
|
|
656
|
-
description: "Delete a Ramp spending limit by id.",
|
|
657
|
-
input: rampLimitDeleteInputSchema,
|
|
658
|
-
output: z.object({ success: z.boolean() }),
|
|
659
|
-
needsApproval: true,
|
|
660
|
-
run: async (input, context) => {
|
|
661
|
-
await createRampClient(context.credentials.ramp).request(`/limits/${encodeURIComponent(input.limitId)}`, { method: "DELETE" });
|
|
662
|
-
return { success: true };
|
|
663
|
-
}
|
|
664
|
-
});
|
|
665
|
-
|
|
666
|
-
//#endregion
|
|
667
|
-
//#region src/operations/delete-location.operation.ts
|
|
668
|
-
const deleteLocationOperation = new Operation({
|
|
669
|
-
credentialSets: [rampCredentialSet],
|
|
670
|
-
id: "ramp.delete-location",
|
|
671
|
-
name: "Delete Location",
|
|
672
|
-
description: "Delete a Ramp location by id.",
|
|
673
|
-
input: rampLocationDeleteInputSchema,
|
|
674
|
-
output: z.object({ success: z.boolean() }),
|
|
675
|
-
needsApproval: true,
|
|
676
|
-
run: async (input, context) => {
|
|
677
|
-
await createRampClient(context.credentials.ramp).request(`/locations/${encodeURIComponent(input.locationId)}`, { method: "DELETE" });
|
|
678
|
-
return { success: true };
|
|
679
|
-
}
|
|
680
|
-
});
|
|
681
|
-
|
|
682
|
-
//#endregion
|
|
683
|
-
//#region src/operations/delete-vendor.operation.ts
|
|
684
|
-
const deleteVendorOperation = new Operation({
|
|
685
|
-
credentialSets: [rampCredentialSet],
|
|
686
|
-
id: "ramp.delete-vendor",
|
|
687
|
-
name: "Delete Vendor",
|
|
688
|
-
description: "Delete a Ramp vendor by id.",
|
|
689
|
-
input: rampVendorDeleteInputSchema,
|
|
690
|
-
output: z.object({ success: z.boolean() }),
|
|
691
|
-
needsApproval: true,
|
|
692
|
-
run: async (input, context) => {
|
|
693
|
-
await createRampClient(context.credentials.ramp).request(`/vendors/${encodeURIComponent(input.vendorId)}`, { method: "DELETE" });
|
|
694
|
-
return { success: true };
|
|
695
|
-
}
|
|
696
|
-
});
|
|
697
|
-
|
|
698
|
-
//#endregion
|
|
699
|
-
//#region src/operations/delete-vendor-bank-account.operation.ts
|
|
700
|
-
const deleteVendorBankAccountOperation = new Operation({
|
|
701
|
-
credentialSets: [rampCredentialSet],
|
|
702
|
-
id: "ramp.delete-vendor-bank-account",
|
|
703
|
-
name: "Delete Vendor Bank Account",
|
|
704
|
-
description: "Delete a vendor bank account by id.",
|
|
705
|
-
input: rampVendorBankAccountDeleteInputSchema,
|
|
706
|
-
output: z.object({ success: z.boolean() }),
|
|
707
|
-
needsApproval: true,
|
|
708
|
-
run: async (input, context) => {
|
|
709
|
-
await createRampClient(context.credentials.ramp).request(`/vendor-bank-accounts/${encodeURIComponent(input.vendorBankAccountId)}`, { method: "DELETE" });
|
|
710
|
-
return { success: true };
|
|
711
|
-
}
|
|
712
|
-
});
|
|
713
|
-
|
|
714
|
-
//#endregion
|
|
715
|
-
//#region src/operations/delete-webhook-subscription.operation.ts
|
|
716
|
-
const deleteWebhookSubscriptionOperation = new Operation({
|
|
717
|
-
credentialSets: [rampCredentialSet],
|
|
718
|
-
id: "ramp.delete-webhook-subscription",
|
|
719
|
-
name: "Delete Webhook Subscription",
|
|
720
|
-
description: "Delete a webhook subscription by id.",
|
|
721
|
-
input: rampWebhookSubscriptionDeleteInputSchema,
|
|
722
|
-
output: z.object({ success: z.boolean() }),
|
|
723
|
-
needsApproval: true,
|
|
724
|
-
run: async (input, context) => {
|
|
725
|
-
await createRampClient(context.credentials.ramp).request(`/webhooks/${encodeURIComponent(input.webhookId)}`, { method: "DELETE" });
|
|
726
|
-
return { success: true };
|
|
727
|
-
}
|
|
728
|
-
});
|
|
729
|
-
|
|
730
|
-
//#endregion
|
|
731
|
-
//#region src/operations/get-accounting-field.operation.ts
|
|
732
|
-
const getAccountingFieldOperation = new Operation({
|
|
733
|
-
credentialSets: [rampCredentialSet],
|
|
734
|
-
id: "ramp.get-accounting-field",
|
|
735
|
-
name: "Get Accounting Field",
|
|
736
|
-
description: "Fetch a Ramp accounting field by id.",
|
|
737
|
-
input: rampAccountingFieldGetInputSchema,
|
|
738
|
-
output: rampAccountingFieldSchema,
|
|
739
|
-
run: async (input, context) => {
|
|
740
|
-
const client = createRampClient(context.credentials.ramp);
|
|
741
|
-
return rampAccountingFieldSchema.parse(await client.request(`/accounting/fields/${encodeURIComponent(input.fieldId)}`));
|
|
742
|
-
}
|
|
743
|
-
});
|
|
744
|
-
|
|
745
|
-
//#endregion
|
|
746
|
-
//#region src/operations/get-accounting-subsidiary.operation.ts
|
|
747
|
-
const getAccountingSubsidiaryOperation = new Operation({
|
|
748
|
-
credentialSets: [rampCredentialSet],
|
|
749
|
-
id: "ramp.get-accounting-subsidiary",
|
|
750
|
-
name: "Get Accounting Subsidiary",
|
|
751
|
-
description: "Fetch a subsidiary by id.",
|
|
752
|
-
input: rampAccountingSubsidiaryGetInputSchema,
|
|
753
|
-
output: rampAccountingSubsidiarySchema,
|
|
754
|
-
run: async (input, context) => {
|
|
755
|
-
const client = createRampClient(context.credentials.ramp);
|
|
756
|
-
return rampAccountingSubsidiarySchema.parse(await client.request(`/accounting/subsidiaries/${encodeURIComponent(input.subsidiaryId)}`));
|
|
757
|
-
}
|
|
758
|
-
});
|
|
759
|
-
|
|
760
|
-
//#endregion
|
|
761
|
-
//#region src/operations/get-accounting-sync.operation.ts
|
|
762
|
-
const getAccountingSyncOperation = new Operation({
|
|
763
|
-
credentialSets: [rampCredentialSet],
|
|
764
|
-
id: "ramp.get-accounting-sync",
|
|
765
|
-
name: "Get Accounting Sync",
|
|
766
|
-
description: "Fetch an accounting sync record by id.",
|
|
767
|
-
input: rampAccountingSyncGetInputSchema,
|
|
768
|
-
output: rampAccountingSyncSchema,
|
|
769
|
-
run: async (input, context) => {
|
|
770
|
-
const client = createRampClient(context.credentials.ramp);
|
|
771
|
-
return rampAccountingSyncSchema.parse(await client.request(`/accounting/syncs/${encodeURIComponent(input.syncId)}`));
|
|
772
|
-
}
|
|
773
|
-
});
|
|
774
|
-
|
|
775
|
-
//#endregion
|
|
776
|
-
//#region src/operations/get-accounting-tracking-category.operation.ts
|
|
777
|
-
const getAccountingTrackingCategoryOperation = new Operation({
|
|
778
|
-
credentialSets: [rampCredentialSet],
|
|
779
|
-
id: "ramp.get-accounting-tracking-category",
|
|
780
|
-
name: "Get Accounting Tracking Category",
|
|
781
|
-
description: "Fetch a tracking category by id.",
|
|
782
|
-
input: rampAccountingTrackingCategoryGetInputSchema,
|
|
783
|
-
output: rampAccountingTrackingCategorySchema,
|
|
784
|
-
run: async (input, context) => {
|
|
785
|
-
const client = createRampClient(context.credentials.ramp);
|
|
786
|
-
return rampAccountingTrackingCategorySchema.parse(await client.request(`/accounting/tracking-categories/${encodeURIComponent(input.trackingCategoryId)}`));
|
|
787
|
-
}
|
|
788
|
-
});
|
|
789
|
-
|
|
790
|
-
//#endregion
|
|
791
|
-
//#region src/operations/get-accounting-vendor.operation.ts
|
|
792
|
-
const getAccountingVendorOperation = new Operation({
|
|
793
|
-
credentialSets: [rampCredentialSet],
|
|
794
|
-
id: "ramp.get-accounting-vendor",
|
|
795
|
-
name: "Get Accounting Vendor",
|
|
796
|
-
description: "Fetch an accounting-system vendor by id.",
|
|
797
|
-
input: rampAccountingVendorGetInputSchema,
|
|
798
|
-
output: rampAccountingVendorSchema,
|
|
799
|
-
run: async (input, context) => {
|
|
800
|
-
const client = createRampClient(context.credentials.ramp);
|
|
801
|
-
return rampAccountingVendorSchema.parse(await client.request(`/accounting/vendors/${encodeURIComponent(input.accountingVendorId)}`));
|
|
802
|
-
}
|
|
803
|
-
});
|
|
804
|
-
|
|
805
|
-
//#endregion
|
|
806
|
-
//#region src/operations/get-application.operation.ts
|
|
807
|
-
const getApplicationOperation = new Operation({
|
|
808
|
-
credentialSets: [rampCredentialSet],
|
|
809
|
-
id: "ramp.get-application",
|
|
810
|
-
name: "Get Application",
|
|
811
|
-
description: "Fetch an application by id.",
|
|
812
|
-
input: rampApplicationGetInputSchema,
|
|
813
|
-
output: rampApplicationSchema,
|
|
814
|
-
run: async (input, context) => {
|
|
815
|
-
const client = createRampClient(context.credentials.ramp);
|
|
816
|
-
return rampApplicationSchema.parse(await client.request(`/applications/${encodeURIComponent(input.applicationId)}`));
|
|
817
|
-
}
|
|
818
|
-
});
|
|
819
|
-
|
|
820
|
-
//#endregion
|
|
821
|
-
//#region src/operations/get-bill.operation.ts
|
|
822
|
-
const getBillOperation = new Operation({
|
|
823
|
-
credentialSets: [rampCredentialSet],
|
|
824
|
-
id: "ramp.get-bill",
|
|
825
|
-
name: "Get Bill",
|
|
826
|
-
description: "Fetch a single Ramp bill by id.",
|
|
827
|
-
input: rampBillGetInputSchema,
|
|
828
|
-
output: rampBillSchema,
|
|
829
|
-
run: async (input, context) => {
|
|
830
|
-
const client = createRampClient(context.credentials.ramp);
|
|
831
|
-
return rampBillSchema.parse(await client.request(`/bills/${encodeURIComponent(input.billId)}`));
|
|
832
|
-
}
|
|
833
|
-
});
|
|
834
|
-
|
|
835
|
-
//#endregion
|
|
836
|
-
//#region src/operations/get-business.operation.ts
|
|
837
|
-
const getBusinessOperation = new Operation({
|
|
838
|
-
credentialSets: [rampCredentialSet],
|
|
839
|
-
id: "ramp.get-business",
|
|
840
|
-
name: "Get Business",
|
|
841
|
-
description: "Fetch the business record associated with the connected Ramp credential.",
|
|
842
|
-
input: z.object({}),
|
|
843
|
-
output: rampBusinessSchema,
|
|
844
|
-
run: async (_input, context) => {
|
|
845
|
-
const client = createRampClient(context.credentials.ramp);
|
|
846
|
-
return rampBusinessSchema.parse(await client.request("/business"));
|
|
847
|
-
}
|
|
848
|
-
});
|
|
849
|
-
|
|
850
|
-
//#endregion
|
|
851
|
-
//#region src/operations/get-card.operation.ts
|
|
852
|
-
const getCardOperation = new Operation({
|
|
853
|
-
credentialSets: [rampCredentialSet],
|
|
854
|
-
id: "ramp.get-card",
|
|
855
|
-
name: "Get Card",
|
|
856
|
-
description: "Fetch a Ramp card by id.",
|
|
857
|
-
input: rampCardGetInputSchema,
|
|
858
|
-
output: rampCardSchema,
|
|
859
|
-
run: async (input, context) => {
|
|
860
|
-
const client = createRampClient(context.credentials.ramp);
|
|
861
|
-
return rampCardSchema.parse(await client.request(`/cards/${encodeURIComponent(input.cardId)}`));
|
|
862
|
-
}
|
|
863
|
-
});
|
|
864
|
-
|
|
865
|
-
//#endregion
|
|
866
|
-
//#region src/operations/get-card-program.operation.ts
|
|
867
|
-
const getCardProgramOperation = new Operation({
|
|
868
|
-
credentialSets: [rampCredentialSet],
|
|
869
|
-
id: "ramp.get-card-program",
|
|
870
|
-
name: "Get Card Program",
|
|
871
|
-
description: "Fetch a Ramp card program by id.",
|
|
872
|
-
input: rampCardProgramGetInputSchema,
|
|
873
|
-
output: rampCardProgramSchema,
|
|
874
|
-
run: async (input, context) => {
|
|
875
|
-
const client = createRampClient(context.credentials.ramp);
|
|
876
|
-
return rampCardProgramSchema.parse(await client.request(`/card-programs/${encodeURIComponent(input.cardProgramId)}`));
|
|
877
|
-
}
|
|
878
|
-
});
|
|
879
|
-
|
|
880
|
-
//#endregion
|
|
881
|
-
//#region src/operations/get-cashback.operation.ts
|
|
882
|
-
const getCashbackOperation = new Operation({
|
|
883
|
-
credentialSets: [rampCredentialSet],
|
|
884
|
-
id: "ramp.get-cashback",
|
|
885
|
-
name: "Get Cashback",
|
|
886
|
-
description: "Fetch a cashback credit by id.",
|
|
887
|
-
input: rampCashbackGetInputSchema,
|
|
888
|
-
output: rampCashbackSchema,
|
|
889
|
-
run: async (input, context) => {
|
|
890
|
-
const client = createRampClient(context.credentials.ramp);
|
|
891
|
-
return rampCashbackSchema.parse(await client.request(`/cashbacks/${encodeURIComponent(input.cashbackId)}`));
|
|
892
|
-
}
|
|
893
|
-
});
|
|
894
|
-
|
|
895
|
-
//#endregion
|
|
896
|
-
//#region src/operations/get-deferred-task.operation.ts
|
|
897
|
-
const getDeferredTaskOperation = new Operation({
|
|
898
|
-
credentialSets: [rampCredentialSet],
|
|
899
|
-
id: "ramp.get-deferred-task",
|
|
900
|
-
name: "Get Deferred Task",
|
|
901
|
-
description: "Poll the status of a deferred Ramp task (invite, termination, etc.).",
|
|
902
|
-
input: z.object({ taskId: z.string().trim().min(1) }),
|
|
903
|
-
output: rampDeferredTaskSchema,
|
|
904
|
-
run: async (input, context) => {
|
|
905
|
-
const client = createRampClient(context.credentials.ramp);
|
|
906
|
-
return rampDeferredTaskSchema.parse(await client.request(`/users/deferred/status/${encodeURIComponent(input.taskId)}`));
|
|
907
|
-
}
|
|
908
|
-
});
|
|
909
|
-
|
|
910
|
-
//#endregion
|
|
911
|
-
//#region src/operations/get-department.operation.ts
|
|
912
|
-
const getDepartmentOperation = new Operation({
|
|
913
|
-
credentialSets: [rampCredentialSet],
|
|
914
|
-
id: "ramp.get-department",
|
|
915
|
-
name: "Get Department",
|
|
916
|
-
description: "Fetch a Ramp department by id.",
|
|
917
|
-
input: rampDepartmentGetInputSchema,
|
|
918
|
-
output: rampDepartmentSchema,
|
|
919
|
-
run: async (input, context) => {
|
|
920
|
-
const client = createRampClient(context.credentials.ramp);
|
|
921
|
-
return rampDepartmentSchema.parse(await client.request(`/departments/${encodeURIComponent(input.departmentId)}`));
|
|
922
|
-
}
|
|
923
|
-
});
|
|
924
|
-
|
|
925
|
-
//#endregion
|
|
926
|
-
//#region src/operations/get-entity.operation.ts
|
|
927
|
-
const getEntityOperation = new Operation({
|
|
928
|
-
credentialSets: [rampCredentialSet],
|
|
929
|
-
id: "ramp.get-entity",
|
|
930
|
-
name: "Get Entity",
|
|
931
|
-
description: "Fetch a Ramp legal entity by id.",
|
|
932
|
-
input: rampEntityGetInputSchema,
|
|
933
|
-
output: rampEntitySchema,
|
|
934
|
-
run: async (input, context) => {
|
|
935
|
-
const client = createRampClient(context.credentials.ramp);
|
|
936
|
-
return rampEntitySchema.parse(await client.request(`/entities/${encodeURIComponent(input.entityId)}`));
|
|
937
|
-
}
|
|
938
|
-
});
|
|
939
|
-
|
|
940
|
-
//#endregion
|
|
941
|
-
//#region src/operations/get-gl-account.operation.ts
|
|
942
|
-
const getGlAccountOperation = new Operation({
|
|
943
|
-
credentialSets: [rampCredentialSet],
|
|
944
|
-
id: "ramp.get-gl-account",
|
|
945
|
-
name: "Get GL Account",
|
|
946
|
-
description: "Fetch a GL account by id.",
|
|
947
|
-
input: rampGlAccountGetInputSchema,
|
|
948
|
-
output: rampGlAccountSchema,
|
|
949
|
-
run: async (input, context) => {
|
|
950
|
-
const client = createRampClient(context.credentials.ramp);
|
|
951
|
-
return rampGlAccountSchema.parse(await client.request(`/accounting/gl-accounts/${encodeURIComponent(input.glAccountId)}`));
|
|
952
|
-
}
|
|
953
|
-
});
|
|
954
|
-
|
|
955
|
-
//#endregion
|
|
956
|
-
//#region src/operations/get-limit.operation.ts
|
|
957
|
-
const getLimitOperation = new Operation({
|
|
958
|
-
credentialSets: [rampCredentialSet],
|
|
959
|
-
id: "ramp.get-limit",
|
|
960
|
-
name: "Get Limit",
|
|
961
|
-
description: "Fetch a Ramp limit by id.",
|
|
962
|
-
input: rampLimitGetInputSchema,
|
|
963
|
-
output: rampLimitSchema,
|
|
964
|
-
run: async (input, context) => {
|
|
965
|
-
const client = createRampClient(context.credentials.ramp);
|
|
966
|
-
return rampLimitSchema.parse(await client.request(`/limits/${encodeURIComponent(input.limitId)}`));
|
|
967
|
-
}
|
|
968
|
-
});
|
|
969
|
-
|
|
970
|
-
//#endregion
|
|
971
|
-
//#region src/operations/get-location.operation.ts
|
|
972
|
-
const getLocationOperation = new Operation({
|
|
973
|
-
credentialSets: [rampCredentialSet],
|
|
974
|
-
id: "ramp.get-location",
|
|
975
|
-
name: "Get Location",
|
|
976
|
-
description: "Fetch a Ramp location by id.",
|
|
977
|
-
input: rampLocationGetInputSchema,
|
|
978
|
-
output: rampLocationSchema,
|
|
979
|
-
run: async (input, context) => {
|
|
980
|
-
const client = createRampClient(context.credentials.ramp);
|
|
981
|
-
return rampLocationSchema.parse(await client.request(`/locations/${encodeURIComponent(input.locationId)}`));
|
|
982
|
-
}
|
|
983
|
-
});
|
|
984
|
-
|
|
985
|
-
//#endregion
|
|
986
|
-
//#region src/operations/get-memo.operation.ts
|
|
987
|
-
const getMemoOperation = new Operation({
|
|
988
|
-
credentialSets: [rampCredentialSet],
|
|
989
|
-
id: "ramp.get-memo",
|
|
990
|
-
name: "Get Memo",
|
|
991
|
-
description: "Fetch a Ramp memo by id.",
|
|
992
|
-
input: rampMemoGetInputSchema,
|
|
993
|
-
output: rampMemoSchema,
|
|
994
|
-
run: async (input, context) => {
|
|
995
|
-
const client = createRampClient(context.credentials.ramp);
|
|
996
|
-
return rampMemoSchema.parse(await client.request(`/memos/${encodeURIComponent(input.memoId)}`));
|
|
997
|
-
}
|
|
998
|
-
});
|
|
999
|
-
|
|
1000
|
-
//#endregion
|
|
1001
|
-
//#region src/operations/get-purchase-order.operation.ts
|
|
1002
|
-
const getPurchaseOrderOperation = new Operation({
|
|
1003
|
-
credentialSets: [rampCredentialSet],
|
|
1004
|
-
id: "ramp.get-purchase-order",
|
|
1005
|
-
name: "Get Purchase Order",
|
|
1006
|
-
description: "Fetch a purchase order by id.",
|
|
1007
|
-
input: rampPurchaseOrderGetInputSchema,
|
|
1008
|
-
output: rampPurchaseOrderSchema,
|
|
1009
|
-
run: async (input, context) => {
|
|
1010
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1011
|
-
return rampPurchaseOrderSchema.parse(await client.request(`/purchase-orders/${encodeURIComponent(input.purchaseOrderId)}`));
|
|
1012
|
-
}
|
|
1013
|
-
});
|
|
1014
|
-
|
|
1015
|
-
//#endregion
|
|
1016
|
-
//#region src/operations/get-receipt.operation.ts
|
|
1017
|
-
const getReceiptOperation = new Operation({
|
|
1018
|
-
credentialSets: [rampCredentialSet],
|
|
1019
|
-
id: "ramp.get-receipt",
|
|
1020
|
-
name: "Get Receipt",
|
|
1021
|
-
description: "Fetch a Ramp receipt by id. Returns a short-lived signed download URL.",
|
|
1022
|
-
input: rampReceiptGetInputSchema,
|
|
1023
|
-
output: rampReceiptSchema,
|
|
1024
|
-
run: async (input, context) => {
|
|
1025
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1026
|
-
return rampReceiptSchema.parse(await client.request(`/receipts/${encodeURIComponent(input.receiptId)}`));
|
|
1027
|
-
}
|
|
1028
|
-
});
|
|
1029
|
-
|
|
1030
|
-
//#endregion
|
|
1031
|
-
//#region src/operations/get-reimbursement.operation.ts
|
|
1032
|
-
const getReimbursementOperation = new Operation({
|
|
1033
|
-
credentialSets: [rampCredentialSet],
|
|
1034
|
-
id: "ramp.get-reimbursement",
|
|
1035
|
-
name: "Get Reimbursement",
|
|
1036
|
-
description: "Fetch a reimbursement by id.",
|
|
1037
|
-
input: rampReimbursementGetInputSchema,
|
|
1038
|
-
output: rampReimbursementSchema,
|
|
1039
|
-
run: async (input, context) => {
|
|
1040
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1041
|
-
return rampReimbursementSchema.parse(await client.request(`/reimbursements/${encodeURIComponent(input.reimbursementId)}`));
|
|
1042
|
-
}
|
|
1043
|
-
});
|
|
1044
|
-
|
|
1045
|
-
//#endregion
|
|
1046
|
-
//#region src/operations/get-spend-program.operation.ts
|
|
1047
|
-
const getSpendProgramOperation = new Operation({
|
|
1048
|
-
credentialSets: [rampCredentialSet],
|
|
1049
|
-
id: "ramp.get-spend-program",
|
|
1050
|
-
name: "Get Spend Program",
|
|
1051
|
-
description: "Fetch a Ramp spend program by id.",
|
|
1052
|
-
input: rampSpendProgramGetInputSchema,
|
|
1053
|
-
output: rampSpendProgramSchema,
|
|
1054
|
-
run: async (input, context) => {
|
|
1055
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1056
|
-
return rampSpendProgramSchema.parse(await client.request(`/spend-programs/${encodeURIComponent(input.spendProgramId)}`));
|
|
1057
|
-
}
|
|
1058
|
-
});
|
|
1059
|
-
|
|
1060
|
-
//#endregion
|
|
1061
|
-
//#region src/operations/get-spend-request.operation.ts
|
|
1062
|
-
const getSpendRequestOperation = new Operation({
|
|
1063
|
-
credentialSets: [rampCredentialSet],
|
|
1064
|
-
id: "ramp.get-spend-request",
|
|
1065
|
-
name: "Get Spend Request",
|
|
1066
|
-
description: "Fetch a Ramp spend request by id.",
|
|
1067
|
-
input: rampSpendRequestGetInputSchema,
|
|
1068
|
-
output: rampSpendRequestSchema,
|
|
1069
|
-
run: async (input, context) => {
|
|
1070
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1071
|
-
return rampSpendRequestSchema.parse(await client.request(`/spend-requests/${encodeURIComponent(input.spendRequestId)}`));
|
|
1072
|
-
}
|
|
1073
|
-
});
|
|
1074
|
-
|
|
1075
|
-
//#endregion
|
|
1076
|
-
//#region src/operations/get-statement.operation.ts
|
|
1077
|
-
const getStatementOperation = new Operation({
|
|
1078
|
-
credentialSets: [rampCredentialSet],
|
|
1079
|
-
id: "ramp.get-statement",
|
|
1080
|
-
name: "Get Statement",
|
|
1081
|
-
description: "Fetch a monthly statement by id. Includes a short-lived signed download URL.",
|
|
1082
|
-
input: rampStatementGetInputSchema,
|
|
1083
|
-
output: rampStatementSchema,
|
|
1084
|
-
run: async (input, context) => {
|
|
1085
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1086
|
-
return rampStatementSchema.parse(await client.request(`/statements/${encodeURIComponent(input.statementId)}`));
|
|
1087
|
-
}
|
|
1088
|
-
});
|
|
1089
|
-
|
|
1090
|
-
//#endregion
|
|
1091
|
-
//#region src/utils/transactions-operation-helpers.ts
|
|
1092
|
-
function clientFor(credentials, options) {
|
|
1093
|
-
return createRampClient(credentials, options);
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
//#endregion
|
|
1097
|
-
//#region src/operations/get-transaction.operation.ts
|
|
1098
|
-
const getTransactionOperation = new Operation({
|
|
1099
|
-
credentialSets: [rampCredentialSet],
|
|
1100
|
-
id: "ramp.get-transaction",
|
|
1101
|
-
name: "Get Transaction",
|
|
1102
|
-
description: "Fetch a single Ramp card transaction by id.",
|
|
1103
|
-
input: rampTransactionGetInputSchema,
|
|
1104
|
-
output: rampTransactionSchema,
|
|
1105
|
-
run: async (input, context) => {
|
|
1106
|
-
const response = await clientFor(context.credentials.ramp).request(`/transactions/${encodeURIComponent(input.transactionId)}`);
|
|
1107
|
-
return rampTransactionSchema.parse(response);
|
|
1108
|
-
}
|
|
1109
|
-
});
|
|
1110
|
-
|
|
1111
|
-
//#endregion
|
|
1112
|
-
//#region src/operations/get-transfer.operation.ts
|
|
1113
|
-
const getTransferOperation = new Operation({
|
|
1114
|
-
credentialSets: [rampCredentialSet],
|
|
1115
|
-
id: "ramp.get-transfer",
|
|
1116
|
-
name: "Get Transfer",
|
|
1117
|
-
description: "Fetch a transfer by id.",
|
|
1118
|
-
input: rampTransferGetInputSchema,
|
|
1119
|
-
output: rampTransferSchema,
|
|
1120
|
-
run: async (input, context) => {
|
|
1121
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1122
|
-
return rampTransferSchema.parse(await client.request(`/transfers/${encodeURIComponent(input.transferId)}`));
|
|
1123
|
-
}
|
|
1124
|
-
});
|
|
1125
|
-
|
|
1126
|
-
//#endregion
|
|
1127
|
-
//#region src/operations/get-unified-request.operation.ts
|
|
1128
|
-
const getUnifiedRequestOperation = new Operation({
|
|
1129
|
-
credentialSets: [rampCredentialSet],
|
|
1130
|
-
id: "ramp.get-unified-request",
|
|
1131
|
-
name: "Get Unified Request",
|
|
1132
|
-
description: "Fetch a unified request by id.",
|
|
1133
|
-
input: rampUnifiedRequestGetInputSchema,
|
|
1134
|
-
output: rampUnifiedRequestSchema,
|
|
1135
|
-
run: async (input, context) => {
|
|
1136
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1137
|
-
return rampUnifiedRequestSchema.parse(await client.request(`/unified-requests/${encodeURIComponent(input.unifiedRequestId)}`));
|
|
1138
|
-
}
|
|
1139
|
-
});
|
|
1140
|
-
|
|
1141
|
-
//#endregion
|
|
1142
|
-
//#region src/operations/get-user.operation.ts
|
|
1143
|
-
const getUserOperation = new Operation({
|
|
1144
|
-
credentialSets: [rampCredentialSet],
|
|
1145
|
-
id: "ramp.get-user",
|
|
1146
|
-
name: "Get User",
|
|
1147
|
-
description: "Fetch a Ramp user by id.",
|
|
1148
|
-
input: rampUserGetInputSchema,
|
|
1149
|
-
output: rampUserSchema,
|
|
1150
|
-
run: async (input, context) => {
|
|
1151
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1152
|
-
return rampUserSchema.parse(await client.request(`/users/${encodeURIComponent(input.userId)}`));
|
|
1153
|
-
}
|
|
1154
|
-
});
|
|
1155
|
-
|
|
1156
|
-
//#endregion
|
|
1157
|
-
//#region src/operations/get-vendor.operation.ts
|
|
1158
|
-
const getVendorOperation = new Operation({
|
|
1159
|
-
credentialSets: [rampCredentialSet],
|
|
1160
|
-
id: "ramp.get-vendor",
|
|
1161
|
-
name: "Get Vendor",
|
|
1162
|
-
description: "Fetch a Ramp vendor by id.",
|
|
1163
|
-
input: rampVendorGetInputSchema,
|
|
1164
|
-
output: rampVendorSchema,
|
|
1165
|
-
run: async (input, context) => {
|
|
1166
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1167
|
-
return rampVendorSchema.parse(await client.request(`/vendors/${encodeURIComponent(input.vendorId)}`));
|
|
1168
|
-
}
|
|
1169
|
-
});
|
|
1170
|
-
|
|
1171
|
-
//#endregion
|
|
1172
|
-
//#region src/operations/get-vendor-bank-account.operation.ts
|
|
1173
|
-
const getVendorBankAccountOperation = new Operation({
|
|
1174
|
-
credentialSets: [rampCredentialSet],
|
|
1175
|
-
id: "ramp.get-vendor-bank-account",
|
|
1176
|
-
name: "Get Vendor Bank Account",
|
|
1177
|
-
description: "Fetch a vendor bank account by id.",
|
|
1178
|
-
input: rampVendorBankAccountGetInputSchema,
|
|
1179
|
-
output: rampVendorBankAccountSchema,
|
|
1180
|
-
run: async (input, context) => {
|
|
1181
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1182
|
-
return rampVendorBankAccountSchema.parse(await client.request(`/vendor-bank-accounts/${encodeURIComponent(input.vendorBankAccountId)}`));
|
|
1183
|
-
}
|
|
1184
|
-
});
|
|
1185
|
-
|
|
1186
|
-
//#endregion
|
|
1187
|
-
//#region src/operations/get-webhook-subscription.operation.ts
|
|
1188
|
-
const getWebhookSubscriptionOperation = new Operation({
|
|
1189
|
-
credentialSets: [rampCredentialSet],
|
|
1190
|
-
id: "ramp.get-webhook-subscription",
|
|
1191
|
-
name: "Get Webhook Subscription",
|
|
1192
|
-
description: "Fetch a webhook subscription by id.",
|
|
1193
|
-
input: rampWebhookSubscriptionGetInputSchema,
|
|
1194
|
-
output: rampWebhookSubscriptionSchema,
|
|
1195
|
-
run: async (input, context) => {
|
|
1196
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1197
|
-
return rampWebhookSubscriptionSchema.parse(await client.request(`/webhooks/${encodeURIComponent(input.webhookId)}`));
|
|
1198
|
-
}
|
|
1199
|
-
});
|
|
1200
|
-
|
|
1201
|
-
//#endregion
|
|
1202
|
-
//#region src/operations/invite-user.operation.ts
|
|
1203
|
-
const inviteUserOperation = new Operation({
|
|
1204
|
-
credentialSets: [rampCredentialSet],
|
|
1205
|
-
id: "ramp.invite-user",
|
|
1206
|
-
name: "Invite User",
|
|
1207
|
-
description: "Invite a new user to the Ramp business via a deferred task.",
|
|
1208
|
-
input: rampUserInviteInputSchema,
|
|
1209
|
-
output: rampDeferredTaskSchema,
|
|
1210
|
-
needsApproval: true,
|
|
1211
|
-
run: async (input, context) => {
|
|
1212
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1213
|
-
const { idempotency_key, ...body } = input;
|
|
1214
|
-
return rampDeferredTaskSchema.parse(await client.request("/users/deferred", {
|
|
1215
|
-
method: "POST",
|
|
1216
|
-
body,
|
|
1217
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
1218
|
-
}));
|
|
1219
|
-
}
|
|
1220
|
-
});
|
|
1221
|
-
|
|
1222
|
-
//#endregion
|
|
1223
|
-
//#region src/operations/list-accounting-field-options.operation.ts
|
|
1224
|
-
const listAccountingFieldOptionsOperation = new Operation({
|
|
1225
|
-
credentialSets: [rampCredentialSet],
|
|
1226
|
-
id: "ramp.list-accounting-field-options",
|
|
1227
|
-
name: "List Accounting Field Options",
|
|
1228
|
-
description: "List options configured on a custom accounting field.",
|
|
1229
|
-
input: rampAccountingFieldOptionListInputSchema,
|
|
1230
|
-
output: rampAccountingFieldOptionListSchema,
|
|
1231
|
-
run: async (input, context) => {
|
|
1232
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1233
|
-
return rampAccountingFieldOptionListSchema.parse(await client.request(`/accounting/fields/${encodeURIComponent(input.field_id)}/options`, { query: omitUndefined({
|
|
1234
|
-
page_size: input.pageSize,
|
|
1235
|
-
start: input.cursor
|
|
1236
|
-
}) }));
|
|
1237
|
-
}
|
|
1238
|
-
});
|
|
1239
|
-
|
|
1240
|
-
//#endregion
|
|
1241
|
-
//#region src/operations/list-accounting-fields.operation.ts
|
|
1242
|
-
const listAccountingFieldsOperation = new Operation({
|
|
1243
|
-
credentialSets: [rampCredentialSet],
|
|
1244
|
-
id: "ramp.list-accounting-fields",
|
|
1245
|
-
name: "List Accounting Fields",
|
|
1246
|
-
description: "List custom accounting fields defined on the Ramp business.",
|
|
1247
|
-
input: rampAccountingFieldListInputSchema,
|
|
1248
|
-
output: rampAccountingFieldListSchema,
|
|
1249
|
-
run: async (input, context) => {
|
|
1250
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1251
|
-
return rampAccountingFieldListSchema.parse(await client.request("/accounting/fields", { query: omitUndefined({
|
|
1252
|
-
page_size: input.pageSize,
|
|
1253
|
-
start: input.cursor
|
|
1254
|
-
}) }));
|
|
1255
|
-
}
|
|
1256
|
-
});
|
|
1257
|
-
|
|
1258
|
-
//#endregion
|
|
1259
|
-
//#region src/operations/list-accounting-subsidiaries.operation.ts
|
|
1260
|
-
const listAccountingSubsidiariesOperation = new Operation({
|
|
1261
|
-
credentialSets: [rampCredentialSet],
|
|
1262
|
-
id: "ramp.list-accounting-subsidiaries",
|
|
1263
|
-
name: "List Accounting Subsidiaries",
|
|
1264
|
-
description: "List subsidiaries synced from the connected accounting system.",
|
|
1265
|
-
input: rampAccountingSubsidiaryListInputSchema,
|
|
1266
|
-
output: rampAccountingSubsidiaryListSchema,
|
|
1267
|
-
run: async (input, context) => {
|
|
1268
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1269
|
-
return rampAccountingSubsidiaryListSchema.parse(await client.request("/accounting/subsidiaries", { query: omitUndefined({
|
|
1270
|
-
page_size: input.pageSize,
|
|
1271
|
-
start: input.cursor
|
|
1272
|
-
}) }));
|
|
1273
|
-
}
|
|
1274
|
-
});
|
|
1275
|
-
|
|
1276
|
-
//#endregion
|
|
1277
|
-
//#region src/operations/list-accounting-syncs.operation.ts
|
|
1278
|
-
const listAccountingSyncsOperation = new Operation({
|
|
1279
|
-
credentialSets: [rampCredentialSet],
|
|
1280
|
-
id: "ramp.list-accounting-syncs",
|
|
1281
|
-
name: "List Accounting Syncs",
|
|
1282
|
-
description: "List recent accounting sync attempts.",
|
|
1283
|
-
input: rampAccountingSyncListInputSchema,
|
|
1284
|
-
output: rampAccountingSyncListSchema,
|
|
1285
|
-
run: async (input, context) => {
|
|
1286
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1287
|
-
return rampAccountingSyncListSchema.parse(await client.request("/accounting/syncs", { query: omitUndefined({
|
|
1288
|
-
page_size: input.pageSize,
|
|
1289
|
-
start: input.cursor
|
|
1290
|
-
}) }));
|
|
1291
|
-
}
|
|
1292
|
-
});
|
|
1293
|
-
|
|
1294
|
-
//#endregion
|
|
1295
|
-
//#region src/operations/list-accounting-tracking-categories.operation.ts
|
|
1296
|
-
const listAccountingTrackingCategoriesOperation = new Operation({
|
|
1297
|
-
credentialSets: [rampCredentialSet],
|
|
1298
|
-
id: "ramp.list-accounting-tracking-categories",
|
|
1299
|
-
name: "List Accounting Tracking Categories",
|
|
1300
|
-
description: "List tracking categories synced from the connected accounting system (e.g. QuickBooks classes).",
|
|
1301
|
-
input: rampAccountingTrackingCategoryListInputSchema,
|
|
1302
|
-
output: rampAccountingTrackingCategoryListSchema,
|
|
1303
|
-
run: async (input, context) => {
|
|
1304
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1305
|
-
return rampAccountingTrackingCategoryListSchema.parse(await client.request("/accounting/tracking-categories", { query: omitUndefined({
|
|
1306
|
-
page_size: input.pageSize,
|
|
1307
|
-
start: input.cursor
|
|
1308
|
-
}) }));
|
|
1309
|
-
}
|
|
1310
|
-
});
|
|
1311
|
-
|
|
1312
|
-
//#endregion
|
|
1313
|
-
//#region src/operations/list-accounting-vendors.operation.ts
|
|
1314
|
-
const listAccountingVendorsOperation = new Operation({
|
|
1315
|
-
credentialSets: [rampCredentialSet],
|
|
1316
|
-
id: "ramp.list-accounting-vendors",
|
|
1317
|
-
name: "List Accounting Vendors",
|
|
1318
|
-
description: "List vendors synced from the connected accounting system.",
|
|
1319
|
-
input: rampAccountingVendorListInputSchema,
|
|
1320
|
-
output: rampAccountingVendorListSchema,
|
|
1321
|
-
run: async (input, context) => {
|
|
1322
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1323
|
-
return rampAccountingVendorListSchema.parse(await client.request("/accounting/vendors", { query: omitUndefined({
|
|
1324
|
-
page_size: input.pageSize,
|
|
1325
|
-
start: input.cursor
|
|
1326
|
-
}) }));
|
|
1327
|
-
}
|
|
1328
|
-
});
|
|
1329
|
-
|
|
1330
|
-
//#endregion
|
|
1331
|
-
//#region src/operations/list-all-transactions.operation.ts
|
|
1332
|
-
const listAllTransactionsOperation = new Operation({
|
|
1333
|
-
credentialSets: [rampCredentialSet],
|
|
1334
|
-
id: "ramp.list-all-transactions",
|
|
1335
|
-
name: "List All Transactions (auto-paginated)",
|
|
1336
|
-
description: "Stream every matching Ramp transaction by following `page.next` until exhausted. Use with care on large date ranges.",
|
|
1337
|
-
input: rampTransactionListInputSchema,
|
|
1338
|
-
output: z.object({ data: z.array(rampTransactionSchema) }),
|
|
1339
|
-
run: async (input, context) => {
|
|
1340
|
-
const client = clientFor(context.credentials.ramp);
|
|
1341
|
-
const query = omitUndefined({
|
|
1342
|
-
department_id: input.department_id,
|
|
1343
|
-
location_id: input.location_id,
|
|
1344
|
-
card_id: input.card_id,
|
|
1345
|
-
entity_id: input.entity_id,
|
|
1346
|
-
merchant_id: input.merchant_id,
|
|
1347
|
-
sk_category_id: input.sk_category_id,
|
|
1348
|
-
state: input.state,
|
|
1349
|
-
min_amount: input.minAmount,
|
|
1350
|
-
max_amount: input.maxAmount,
|
|
1351
|
-
from_date: input.start,
|
|
1352
|
-
to_date: input.end
|
|
1353
|
-
});
|
|
1354
|
-
const data = [];
|
|
1355
|
-
for await (const item of client.paginate("/transactions", {
|
|
1356
|
-
query,
|
|
1357
|
-
pageSize: input.pageSize ?? 100
|
|
1358
|
-
})) data.push(rampTransactionSchema.parse(item));
|
|
1359
|
-
return { data };
|
|
1360
|
-
}
|
|
1361
|
-
});
|
|
1362
|
-
|
|
1363
|
-
//#endregion
|
|
1364
|
-
//#region src/operations/list-applications.operation.ts
|
|
1365
|
-
const listApplicationsOperation = new Operation({
|
|
1366
|
-
credentialSets: [rampCredentialSet],
|
|
1367
|
-
id: "ramp.list-applications",
|
|
1368
|
-
name: "List Applications",
|
|
1369
|
-
description: "List Ramp user applications (access/role requests). Supports status filter.",
|
|
1370
|
-
input: rampApplicationListInputSchema,
|
|
1371
|
-
output: rampApplicationListSchema,
|
|
1372
|
-
run: async (input, context) => {
|
|
1373
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1374
|
-
return rampApplicationListSchema.parse(await client.request("/applications", { query: omitUndefined({
|
|
1375
|
-
status: input.status,
|
|
1376
|
-
page_size: input.pageSize,
|
|
1377
|
-
start: input.cursor
|
|
1378
|
-
}) }));
|
|
1379
|
-
}
|
|
1380
|
-
});
|
|
1381
|
-
|
|
1382
|
-
//#endregion
|
|
1383
|
-
//#region src/operations/list-bills.operation.ts
|
|
1384
|
-
const listBillsOperation = new Operation({
|
|
1385
|
-
credentialSets: [rampCredentialSet],
|
|
1386
|
-
id: "ramp.list-bills",
|
|
1387
|
-
name: "List Bills",
|
|
1388
|
-
description: "List Ramp bills (bill-pay invoices). Supports filtering by vendor, status, entity, and date range.",
|
|
1389
|
-
input: rampBillListInputSchema,
|
|
1390
|
-
output: rampBillListSchema,
|
|
1391
|
-
run: async (input, context) => {
|
|
1392
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1393
|
-
const query = omitUndefined({
|
|
1394
|
-
vendor_id: input.vendor_id,
|
|
1395
|
-
status: input.status,
|
|
1396
|
-
entity_id: input.entity_id,
|
|
1397
|
-
from_date: input.start,
|
|
1398
|
-
to_date: input.end,
|
|
1399
|
-
page_size: input.pageSize,
|
|
1400
|
-
start: input.cursor
|
|
1401
|
-
});
|
|
1402
|
-
return rampBillListSchema.parse(await client.request("/bills", { query }));
|
|
1403
|
-
}
|
|
1404
|
-
});
|
|
1405
|
-
|
|
1406
|
-
//#endregion
|
|
1407
|
-
//#region src/operations/list-card-fund-transfers.operation.ts
|
|
1408
|
-
const listCardFundTransfersOperation = new Operation({
|
|
1409
|
-
credentialSets: [rampCredentialSet],
|
|
1410
|
-
id: "ramp.list-card-fund-transfers",
|
|
1411
|
-
name: "List Card Fund Transfers",
|
|
1412
|
-
description: "List fund transfers associated with Ramp cards.",
|
|
1413
|
-
input: z.object({
|
|
1414
|
-
card_id: z.string().trim().min(1).optional(),
|
|
1415
|
-
pageSize: z.number().int().positive().max(100).optional(),
|
|
1416
|
-
cursor: z.string().trim().min(1).optional()
|
|
1417
|
-
}),
|
|
1418
|
-
output: z.object({
|
|
1419
|
-
data: z.array(rampCardFundTransferSchema),
|
|
1420
|
-
page: z.object({ next: z.string().optional() }).optional()
|
|
1421
|
-
}),
|
|
1422
|
-
run: async (input, context) => {
|
|
1423
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1424
|
-
const query = omitUndefined({
|
|
1425
|
-
card_id: input.card_id,
|
|
1426
|
-
page_size: input.pageSize,
|
|
1427
|
-
start: input.cursor
|
|
1428
|
-
});
|
|
1429
|
-
const response = await client.request("/card-fund-transfers", { query });
|
|
1430
|
-
return {
|
|
1431
|
-
data: (response?.data ?? []).map((item) => rampCardFundTransferSchema.parse(item)),
|
|
1432
|
-
...response?.page !== void 0 ? { page: response.page } : {}
|
|
1433
|
-
};
|
|
1434
|
-
}
|
|
1435
|
-
});
|
|
1436
|
-
|
|
1437
|
-
//#endregion
|
|
1438
|
-
//#region src/operations/list-card-programs.operation.ts
|
|
1439
|
-
const listCardProgramsOperation = new Operation({
|
|
1440
|
-
credentialSets: [rampCredentialSet],
|
|
1441
|
-
id: "ramp.list-card-programs",
|
|
1442
|
-
name: "List Card Programs",
|
|
1443
|
-
description: "List all Ramp card programs configured for the connected business.",
|
|
1444
|
-
input: rampCardProgramListInputSchema,
|
|
1445
|
-
output: rampCardProgramListSchema,
|
|
1446
|
-
run: async (input, context) => {
|
|
1447
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1448
|
-
const query = omitUndefined({
|
|
1449
|
-
page_size: input.pageSize,
|
|
1450
|
-
start: input.cursor
|
|
1451
|
-
});
|
|
1452
|
-
return rampCardProgramListSchema.parse(await client.request("/card-programs", { query }));
|
|
1453
|
-
}
|
|
1454
|
-
});
|
|
1455
|
-
|
|
1456
|
-
//#endregion
|
|
1457
|
-
//#region src/operations/list-cards.operation.ts
|
|
1458
|
-
const listCardsOperation = new Operation({
|
|
1459
|
-
credentialSets: [rampCredentialSet],
|
|
1460
|
-
id: "ramp.list-cards",
|
|
1461
|
-
name: "List Cards",
|
|
1462
|
-
description: "List Ramp cards, optionally filtered by cardholder, entity, card program, or state.",
|
|
1463
|
-
input: rampCardListInputSchema,
|
|
1464
|
-
output: rampCardListSchema,
|
|
1465
|
-
run: async (input, context) => {
|
|
1466
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1467
|
-
const query = omitUndefined({
|
|
1468
|
-
cardholder_id: input.cardholder_id,
|
|
1469
|
-
entity_id: input.entity_id,
|
|
1470
|
-
state: input.state,
|
|
1471
|
-
card_program_id: input.card_program_id,
|
|
1472
|
-
page_size: input.pageSize,
|
|
1473
|
-
start: input.cursor
|
|
1474
|
-
});
|
|
1475
|
-
return rampCardListSchema.parse(await client.request("/cards", { query }));
|
|
1476
|
-
}
|
|
1477
|
-
});
|
|
1478
|
-
|
|
1479
|
-
//#endregion
|
|
1480
|
-
//#region src/operations/list-cashbacks.operation.ts
|
|
1481
|
-
const listCashbacksOperation = new Operation({
|
|
1482
|
-
credentialSets: [rampCredentialSet],
|
|
1483
|
-
id: "ramp.list-cashbacks",
|
|
1484
|
-
name: "List Cashbacks",
|
|
1485
|
-
description: "List cashback credits granted to the connected Ramp business.",
|
|
1486
|
-
input: rampCashbackListInputSchema,
|
|
1487
|
-
output: rampCashbackListSchema,
|
|
1488
|
-
run: async (input, context) => {
|
|
1489
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1490
|
-
return rampCashbackListSchema.parse(await client.request("/cashbacks", { query: omitUndefined({
|
|
1491
|
-
page_size: input.pageSize,
|
|
1492
|
-
start: input.cursor
|
|
1493
|
-
}) }));
|
|
1494
|
-
}
|
|
1495
|
-
});
|
|
1496
|
-
|
|
1497
|
-
//#endregion
|
|
1498
|
-
//#region src/operations/list-departments.operation.ts
|
|
1499
|
-
const listDepartmentsOperation = new Operation({
|
|
1500
|
-
credentialSets: [rampCredentialSet],
|
|
1501
|
-
id: "ramp.list-departments",
|
|
1502
|
-
name: "List Departments",
|
|
1503
|
-
description: "List all departments configured for the connected Ramp business.",
|
|
1504
|
-
input: rampDepartmentListInputSchema,
|
|
1505
|
-
output: rampDepartmentListSchema,
|
|
1506
|
-
run: async (input, context) => {
|
|
1507
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1508
|
-
return rampDepartmentListSchema.parse(await client.request("/departments", { query: omitUndefined({
|
|
1509
|
-
page_size: input.pageSize,
|
|
1510
|
-
start: input.cursor
|
|
1511
|
-
}) }));
|
|
1512
|
-
}
|
|
1513
|
-
});
|
|
1514
|
-
|
|
1515
|
-
//#endregion
|
|
1516
|
-
//#region src/operations/list-entities.operation.ts
|
|
1517
|
-
const listEntitiesOperation = new Operation({
|
|
1518
|
-
credentialSets: [rampCredentialSet],
|
|
1519
|
-
id: "ramp.list-entities",
|
|
1520
|
-
name: "List Entities",
|
|
1521
|
-
description: "List legal entities configured under the connected Ramp business.",
|
|
1522
|
-
input: rampEntityListInputSchema,
|
|
1523
|
-
output: rampEntityListSchema,
|
|
1524
|
-
run: async (input, context) => {
|
|
1525
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1526
|
-
return rampEntityListSchema.parse(await client.request("/entities", { query: omitUndefined({
|
|
1527
|
-
page_size: input.pageSize,
|
|
1528
|
-
start: input.cursor
|
|
1529
|
-
}) }));
|
|
1530
|
-
}
|
|
1531
|
-
});
|
|
1532
|
-
|
|
1533
|
-
//#endregion
|
|
1534
|
-
//#region src/operations/list-gl-accounts.operation.ts
|
|
1535
|
-
const listGlAccountsOperation = new Operation({
|
|
1536
|
-
credentialSets: [rampCredentialSet],
|
|
1537
|
-
id: "ramp.list-gl-accounts",
|
|
1538
|
-
name: "List GL Accounts",
|
|
1539
|
-
description: "List general-ledger accounts synced from the connected accounting system.",
|
|
1540
|
-
input: rampGlAccountListInputSchema,
|
|
1541
|
-
output: rampGlAccountListSchema,
|
|
1542
|
-
run: async (input, context) => {
|
|
1543
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1544
|
-
return rampGlAccountListSchema.parse(await client.request("/accounting/gl-accounts", { query: omitUndefined({
|
|
1545
|
-
page_size: input.pageSize,
|
|
1546
|
-
start: input.cursor
|
|
1547
|
-
}) }));
|
|
1548
|
-
}
|
|
1549
|
-
});
|
|
1550
|
-
|
|
1551
|
-
//#endregion
|
|
1552
|
-
//#region src/operations/list-limits.operation.ts
|
|
1553
|
-
const listLimitsOperation = new Operation({
|
|
1554
|
-
credentialSets: [rampCredentialSet],
|
|
1555
|
-
id: "ramp.list-limits",
|
|
1556
|
-
name: "List Limits",
|
|
1557
|
-
description: "List Ramp spending limits. Supports filtering by user, spend program, and entity.",
|
|
1558
|
-
input: rampLimitListInputSchema,
|
|
1559
|
-
output: rampLimitListSchema,
|
|
1560
|
-
run: async (input, context) => {
|
|
1561
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1562
|
-
return rampLimitListSchema.parse(await client.request("/limits", { query: omitUndefined({
|
|
1563
|
-
user_id: input.user_id,
|
|
1564
|
-
spend_program_id: input.spend_program_id,
|
|
1565
|
-
entity_id: input.entity_id,
|
|
1566
|
-
page_size: input.pageSize,
|
|
1567
|
-
start: input.cursor
|
|
1568
|
-
}) }));
|
|
1569
|
-
}
|
|
1570
|
-
});
|
|
1571
|
-
|
|
1572
|
-
//#endregion
|
|
1573
|
-
//#region src/operations/list-locations.operation.ts
|
|
1574
|
-
const listLocationsOperation = new Operation({
|
|
1575
|
-
credentialSets: [rampCredentialSet],
|
|
1576
|
-
id: "ramp.list-locations",
|
|
1577
|
-
name: "List Locations",
|
|
1578
|
-
description: "List locations configured in the Ramp business, optionally filtered by entity.",
|
|
1579
|
-
input: rampLocationListInputSchema,
|
|
1580
|
-
output: rampLocationListSchema,
|
|
1581
|
-
run: async (input, context) => {
|
|
1582
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1583
|
-
return rampLocationListSchema.parse(await client.request("/locations", { query: omitUndefined({
|
|
1584
|
-
entity_id: input.entity_id,
|
|
1585
|
-
page_size: input.pageSize,
|
|
1586
|
-
start: input.cursor
|
|
1587
|
-
}) }));
|
|
1588
|
-
}
|
|
1589
|
-
});
|
|
1590
|
-
|
|
1591
|
-
//#endregion
|
|
1592
|
-
//#region src/operations/list-memos.operation.ts
|
|
1593
|
-
const listMemosOperation = new Operation({
|
|
1594
|
-
credentialSets: [rampCredentialSet],
|
|
1595
|
-
id: "ramp.list-memos",
|
|
1596
|
-
name: "List Memos",
|
|
1597
|
-
description: "List Ramp memos attached to transactions or users.",
|
|
1598
|
-
input: rampMemoListInputSchema,
|
|
1599
|
-
output: rampMemoListSchema,
|
|
1600
|
-
run: async (input, context) => {
|
|
1601
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1602
|
-
return rampMemoListSchema.parse(await client.request("/memos", { query: omitUndefined({
|
|
1603
|
-
transaction_id: input.transaction_id,
|
|
1604
|
-
user_id: input.user_id,
|
|
1605
|
-
page_size: input.pageSize,
|
|
1606
|
-
start: input.cursor
|
|
1607
|
-
}) }));
|
|
1608
|
-
}
|
|
1609
|
-
});
|
|
1610
|
-
|
|
1611
|
-
//#endregion
|
|
1612
|
-
//#region src/operations/list-purchase-orders.operation.ts
|
|
1613
|
-
const listPurchaseOrdersOperation = new Operation({
|
|
1614
|
-
credentialSets: [rampCredentialSet],
|
|
1615
|
-
id: "ramp.list-purchase-orders",
|
|
1616
|
-
name: "List Purchase Orders",
|
|
1617
|
-
description: "List Ramp purchase orders. Supports status and vendor filters.",
|
|
1618
|
-
input: rampPurchaseOrderListInputSchema,
|
|
1619
|
-
output: rampPurchaseOrderListSchema,
|
|
1620
|
-
run: async (input, context) => {
|
|
1621
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1622
|
-
return rampPurchaseOrderListSchema.parse(await client.request("/purchase-orders", { query: omitUndefined({
|
|
1623
|
-
status: input.status,
|
|
1624
|
-
vendor_id: input.vendor_id,
|
|
1625
|
-
page_size: input.pageSize,
|
|
1626
|
-
start: input.cursor
|
|
1627
|
-
}) }));
|
|
1628
|
-
}
|
|
1629
|
-
});
|
|
1630
|
-
|
|
1631
|
-
//#endregion
|
|
1632
|
-
//#region src/operations/list-receipts.operation.ts
|
|
1633
|
-
const listReceiptsOperation = new Operation({
|
|
1634
|
-
credentialSets: [rampCredentialSet],
|
|
1635
|
-
id: "ramp.list-receipts",
|
|
1636
|
-
name: "List Receipts",
|
|
1637
|
-
description: "List receipts attached to transactions or uploaded by users. Supports user, transaction, and creation date filters.",
|
|
1638
|
-
input: rampReceiptListInputSchema,
|
|
1639
|
-
output: rampReceiptListSchema,
|
|
1640
|
-
run: async (input, context) => {
|
|
1641
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1642
|
-
return rampReceiptListSchema.parse(await client.request("/receipts", { query: omitUndefined({
|
|
1643
|
-
user_id: input.user_id,
|
|
1644
|
-
transaction_id: input.transaction_id,
|
|
1645
|
-
created_before: input.created_before,
|
|
1646
|
-
created_after: input.created_after,
|
|
1647
|
-
page_size: input.pageSize,
|
|
1648
|
-
start: input.cursor
|
|
1649
|
-
}) }));
|
|
1650
|
-
}
|
|
1651
|
-
});
|
|
1652
|
-
|
|
1653
|
-
//#endregion
|
|
1654
|
-
//#region src/operations/list-reimbursements.operation.ts
|
|
1655
|
-
const listReimbursementsOperation = new Operation({
|
|
1656
|
-
credentialSets: [rampCredentialSet],
|
|
1657
|
-
id: "ramp.list-reimbursements",
|
|
1658
|
-
name: "List Reimbursements",
|
|
1659
|
-
description: "List Ramp reimbursements visible to the connected credential. Supports user, state, and date range filters.",
|
|
1660
|
-
input: rampReimbursementListInputSchema,
|
|
1661
|
-
output: rampReimbursementListSchema,
|
|
1662
|
-
run: async (input, context) => {
|
|
1663
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1664
|
-
const query = omitUndefined({
|
|
1665
|
-
user_id: input.user_id,
|
|
1666
|
-
state: input.state,
|
|
1667
|
-
from_date: input.start,
|
|
1668
|
-
to_date: input.end,
|
|
1669
|
-
page_size: input.pageSize,
|
|
1670
|
-
start: input.cursor
|
|
1671
|
-
});
|
|
1672
|
-
return rampReimbursementListSchema.parse(await client.request("/reimbursements", { query }));
|
|
1673
|
-
}
|
|
1674
|
-
});
|
|
1675
|
-
|
|
1676
|
-
//#endregion
|
|
1677
|
-
//#region src/operations/list-spend-programs.operation.ts
|
|
1678
|
-
const listSpendProgramsOperation = new Operation({
|
|
1679
|
-
credentialSets: [rampCredentialSet],
|
|
1680
|
-
id: "ramp.list-spend-programs",
|
|
1681
|
-
name: "List Spend Programs",
|
|
1682
|
-
description: "List Ramp spend programs — the templates used to mint new limits.",
|
|
1683
|
-
input: rampSpendProgramListInputSchema,
|
|
1684
|
-
output: rampSpendProgramListSchema,
|
|
1685
|
-
run: async (input, context) => {
|
|
1686
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1687
|
-
return rampSpendProgramListSchema.parse(await client.request("/spend-programs", { query: omitUndefined({
|
|
1688
|
-
page_size: input.pageSize,
|
|
1689
|
-
start: input.cursor
|
|
1690
|
-
}) }));
|
|
1691
|
-
}
|
|
1692
|
-
});
|
|
1693
|
-
|
|
1694
|
-
//#endregion
|
|
1695
|
-
//#region src/operations/list-spend-requests.operation.ts
|
|
1696
|
-
const listSpendRequestsOperation = new Operation({
|
|
1697
|
-
credentialSets: [rampCredentialSet],
|
|
1698
|
-
id: "ramp.list-spend-requests",
|
|
1699
|
-
name: "List Spend Requests",
|
|
1700
|
-
description: "List Ramp spend requests awaiting or completing an approval workflow.",
|
|
1701
|
-
input: rampSpendRequestListInputSchema,
|
|
1702
|
-
output: rampSpendRequestListSchema,
|
|
1703
|
-
run: async (input, context) => {
|
|
1704
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1705
|
-
return rampSpendRequestListSchema.parse(await client.request("/spend-requests", { query: omitUndefined({
|
|
1706
|
-
status: input.status,
|
|
1707
|
-
user_id: input.user_id,
|
|
1708
|
-
page_size: input.pageSize,
|
|
1709
|
-
start: input.cursor
|
|
1710
|
-
}) }));
|
|
1711
|
-
}
|
|
1712
|
-
});
|
|
1713
|
-
|
|
1714
|
-
//#endregion
|
|
1715
|
-
//#region src/operations/list-statements.operation.ts
|
|
1716
|
-
const listStatementsOperation = new Operation({
|
|
1717
|
-
credentialSets: [rampCredentialSet],
|
|
1718
|
-
id: "ramp.list-statements",
|
|
1719
|
-
name: "List Statements",
|
|
1720
|
-
description: "List monthly Ramp account statements, optionally filtered by entity and date range.",
|
|
1721
|
-
input: rampStatementListInputSchema,
|
|
1722
|
-
output: rampStatementListSchema,
|
|
1723
|
-
run: async (input, context) => {
|
|
1724
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1725
|
-
return rampStatementListSchema.parse(await client.request("/statements", { query: omitUndefined({
|
|
1726
|
-
entity_id: input.entity_id,
|
|
1727
|
-
from_date: input.start,
|
|
1728
|
-
to_date: input.end,
|
|
1729
|
-
page_size: input.pageSize,
|
|
1730
|
-
start: input.cursor
|
|
1731
|
-
}) }));
|
|
1732
|
-
}
|
|
1733
|
-
});
|
|
1734
|
-
|
|
1735
|
-
//#endregion
|
|
1736
|
-
//#region src/operations/list-transactions.operation.ts
|
|
1737
|
-
const listTransactionsOperation = new Operation({
|
|
1738
|
-
credentialSets: [rampCredentialSet],
|
|
1739
|
-
id: "ramp.list-transactions",
|
|
1740
|
-
name: "List Transactions",
|
|
1741
|
-
description: "List Ramp card transactions with optional filters (date range, amount, merchant, user, state). Returns a single page of results; use `cursor` to paginate.",
|
|
1742
|
-
input: rampTransactionListInputSchema,
|
|
1743
|
-
output: rampTransactionListSchema,
|
|
1744
|
-
run: async (input, context) => {
|
|
1745
|
-
const client = clientFor(context.credentials.ramp);
|
|
1746
|
-
const query = omitUndefined({
|
|
1747
|
-
department_id: input.department_id,
|
|
1748
|
-
location_id: input.location_id,
|
|
1749
|
-
card_id: input.card_id,
|
|
1750
|
-
entity_id: input.entity_id,
|
|
1751
|
-
merchant_id: input.merchant_id,
|
|
1752
|
-
sk_category_id: input.sk_category_id,
|
|
1753
|
-
state: input.state,
|
|
1754
|
-
min_amount: input.minAmount,
|
|
1755
|
-
max_amount: input.maxAmount,
|
|
1756
|
-
from_date: input.start,
|
|
1757
|
-
to_date: input.end,
|
|
1758
|
-
order_by_date_desc: input.orderBy === "user_transaction_time DESC" ? true : void 0,
|
|
1759
|
-
page_size: input.pageSize,
|
|
1760
|
-
start: input.cursor
|
|
1761
|
-
});
|
|
1762
|
-
const response = await client.request("/transactions", { query });
|
|
1763
|
-
return rampTransactionListSchema.parse(response);
|
|
1764
|
-
}
|
|
1765
|
-
});
|
|
1766
|
-
|
|
1767
|
-
//#endregion
|
|
1768
|
-
//#region src/operations/list-transfers.operation.ts
|
|
1769
|
-
const listTransfersOperation = new Operation({
|
|
1770
|
-
credentialSets: [rampCredentialSet],
|
|
1771
|
-
id: "ramp.list-transfers",
|
|
1772
|
-
name: "List Transfers",
|
|
1773
|
-
description: "List funding transfers between the connected Ramp business and external accounts.",
|
|
1774
|
-
input: rampTransferListInputSchema,
|
|
1775
|
-
output: rampTransferListSchema,
|
|
1776
|
-
run: async (input, context) => {
|
|
1777
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1778
|
-
return rampTransferListSchema.parse(await client.request("/transfers", { query: omitUndefined({
|
|
1779
|
-
entity_id: input.entity_id,
|
|
1780
|
-
status: input.status,
|
|
1781
|
-
page_size: input.pageSize,
|
|
1782
|
-
start: input.cursor
|
|
1783
|
-
}) }));
|
|
1784
|
-
}
|
|
1785
|
-
});
|
|
1786
|
-
|
|
1787
|
-
//#endregion
|
|
1788
|
-
//#region src/operations/list-unified-requests.operation.ts
|
|
1789
|
-
const listUnifiedRequestsOperation = new Operation({
|
|
1790
|
-
credentialSets: [rampCredentialSet],
|
|
1791
|
-
id: "ramp.list-unified-requests",
|
|
1792
|
-
name: "List Unified Requests",
|
|
1793
|
-
description: "List Ramp \"unified requests\" — the normalised request object spanning spend requests, bills, applications, and purchase orders.",
|
|
1794
|
-
input: rampUnifiedRequestListInputSchema,
|
|
1795
|
-
output: rampUnifiedRequestListSchema,
|
|
1796
|
-
run: async (input, context) => {
|
|
1797
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1798
|
-
return rampUnifiedRequestListSchema.parse(await client.request("/unified-requests", { query: omitUndefined({
|
|
1799
|
-
status: input.status,
|
|
1800
|
-
request_type: input.request_type,
|
|
1801
|
-
user_id: input.user_id,
|
|
1802
|
-
page_size: input.pageSize,
|
|
1803
|
-
start: input.cursor
|
|
1804
|
-
}) }));
|
|
1805
|
-
}
|
|
1806
|
-
});
|
|
1807
|
-
|
|
1808
|
-
//#endregion
|
|
1809
|
-
//#region src/operations/list-users.operation.ts
|
|
1810
|
-
const listUsersOperation = new Operation({
|
|
1811
|
-
credentialSets: [rampCredentialSet],
|
|
1812
|
-
id: "ramp.list-users",
|
|
1813
|
-
name: "List Users",
|
|
1814
|
-
description: "List Ramp users visible to the connected credential. Supports filtering by department, location, entity, role, and email.",
|
|
1815
|
-
input: rampUserListInputSchema,
|
|
1816
|
-
output: rampUserListSchema,
|
|
1817
|
-
run: async (input, context) => {
|
|
1818
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1819
|
-
const query = omitUndefined({
|
|
1820
|
-
department_id: input.department_id,
|
|
1821
|
-
location_id: input.location_id,
|
|
1822
|
-
entity_id: input.entity_id,
|
|
1823
|
-
role: input.role,
|
|
1824
|
-
email: input.email,
|
|
1825
|
-
page_size: input.pageSize,
|
|
1826
|
-
start: input.cursor
|
|
1827
|
-
});
|
|
1828
|
-
return rampUserListSchema.parse(await client.request("/users", { query }));
|
|
1829
|
-
}
|
|
1830
|
-
});
|
|
1831
|
-
|
|
1832
|
-
//#endregion
|
|
1833
|
-
//#region src/operations/list-vendor-bank-accounts.operation.ts
|
|
1834
|
-
const listVendorBankAccountsOperation = new Operation({
|
|
1835
|
-
credentialSets: [rampCredentialSet],
|
|
1836
|
-
id: "ramp.list-vendor-bank-accounts",
|
|
1837
|
-
name: "List Vendor Bank Accounts",
|
|
1838
|
-
description: "List bank accounts linked to Ramp vendors, optionally filtered by vendor.",
|
|
1839
|
-
input: rampVendorBankAccountListInputSchema,
|
|
1840
|
-
output: rampVendorBankAccountListSchema,
|
|
1841
|
-
run: async (input, context) => {
|
|
1842
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1843
|
-
const query = omitUndefined({
|
|
1844
|
-
vendor_id: input.vendor_id,
|
|
1845
|
-
page_size: input.pageSize,
|
|
1846
|
-
start: input.cursor
|
|
1847
|
-
});
|
|
1848
|
-
return rampVendorBankAccountListSchema.parse(await client.request("/vendor-bank-accounts", { query }));
|
|
1849
|
-
}
|
|
1850
|
-
});
|
|
1851
|
-
|
|
1852
|
-
//#endregion
|
|
1853
|
-
//#region src/operations/list-vendors.operation.ts
|
|
1854
|
-
const listVendorsOperation = new Operation({
|
|
1855
|
-
credentialSets: [rampCredentialSet],
|
|
1856
|
-
id: "ramp.list-vendors",
|
|
1857
|
-
name: "List Vendors",
|
|
1858
|
-
description: "List Ramp vendors, optionally filtered by name or email.",
|
|
1859
|
-
input: rampVendorListInputSchema,
|
|
1860
|
-
output: rampVendorListSchema,
|
|
1861
|
-
run: async (input, context) => {
|
|
1862
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1863
|
-
const query = omitUndefined({
|
|
1864
|
-
name: input.name,
|
|
1865
|
-
email: input.email,
|
|
1866
|
-
page_size: input.pageSize,
|
|
1867
|
-
start: input.cursor
|
|
1868
|
-
});
|
|
1869
|
-
return rampVendorListSchema.parse(await client.request("/vendors", { query }));
|
|
1870
|
-
}
|
|
1871
|
-
});
|
|
1872
|
-
|
|
1873
|
-
//#endregion
|
|
1874
|
-
//#region src/operations/list-webhook-subscriptions.operation.ts
|
|
1875
|
-
const listWebhookSubscriptionsOperation = new Operation({
|
|
1876
|
-
credentialSets: [rampCredentialSet],
|
|
1877
|
-
id: "ramp.list-webhook-subscriptions",
|
|
1878
|
-
name: "List Webhook Subscriptions",
|
|
1879
|
-
description: "List webhook subscriptions registered on the connected Ramp app.",
|
|
1880
|
-
input: rampWebhookSubscriptionListInputSchema,
|
|
1881
|
-
output: rampWebhookSubscriptionListSchema,
|
|
1882
|
-
run: async (input, context) => {
|
|
1883
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1884
|
-
return rampWebhookSubscriptionListSchema.parse(await client.request("/webhooks", { query: omitUndefined({
|
|
1885
|
-
page_size: input.pageSize,
|
|
1886
|
-
start: input.cursor
|
|
1887
|
-
}) }));
|
|
1888
|
-
}
|
|
1889
|
-
});
|
|
1890
|
-
|
|
1891
|
-
//#endregion
|
|
1892
|
-
//#region src/operations/opt-in-receipt-integration.operation.ts
|
|
1893
|
-
const optInReceiptIntegrationOperation = new Operation({
|
|
1894
|
-
credentialSets: [rampCredentialSet],
|
|
1895
|
-
id: "ramp.opt-in-receipt-integration",
|
|
1896
|
-
name: "Opt In Receipt Integration",
|
|
1897
|
-
description: "Enable the inbound receipt-email integration for a Ramp business so users can forward receipts from their mail client.",
|
|
1898
|
-
input: rampReceiptIntegrationOptInInputSchema,
|
|
1899
|
-
output: rampReceiptIntegrationOptedInSchema,
|
|
1900
|
-
needsApproval: true,
|
|
1901
|
-
run: async (input, context) => {
|
|
1902
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1903
|
-
return rampReceiptIntegrationOptedInSchema.parse(await client.request("/receipt-integrations/opt-in", {
|
|
1904
|
-
method: "POST",
|
|
1905
|
-
body: input
|
|
1906
|
-
}));
|
|
1907
|
-
}
|
|
1908
|
-
});
|
|
1909
|
-
|
|
1910
|
-
//#endregion
|
|
1911
|
-
//#region src/operations/opt-out-receipt-integration.operation.ts
|
|
1912
|
-
const optOutReceiptIntegrationOperation = new Operation({
|
|
1913
|
-
credentialSets: [rampCredentialSet],
|
|
1914
|
-
id: "ramp.opt-out-receipt-integration",
|
|
1915
|
-
name: "Opt Out Receipt Integration",
|
|
1916
|
-
description: "Disable the inbound receipt-email integration for a Ramp business.",
|
|
1917
|
-
input: rampReceiptIntegrationOptOutInputSchema,
|
|
1918
|
-
output: rampReceiptIntegrationOptedInSchema,
|
|
1919
|
-
needsApproval: true,
|
|
1920
|
-
run: async (input, context) => {
|
|
1921
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1922
|
-
return rampReceiptIntegrationOptedInSchema.parse(await client.request("/receipt-integrations/opt-out", {
|
|
1923
|
-
method: "POST",
|
|
1924
|
-
body: input
|
|
1925
|
-
}));
|
|
1926
|
-
}
|
|
1927
|
-
});
|
|
1928
|
-
|
|
1929
|
-
//#endregion
|
|
1930
|
-
//#region src/operations/reject-bill.operation.ts
|
|
1931
|
-
const rejectBillOperation = new Operation({
|
|
1932
|
-
credentialSets: [rampCredentialSet],
|
|
1933
|
-
id: "ramp.reject-bill",
|
|
1934
|
-
name: "Reject Bill",
|
|
1935
|
-
description: "Reject a pending Ramp bill.",
|
|
1936
|
-
input: rampBillRejectInputSchema,
|
|
1937
|
-
output: rampBillSchema,
|
|
1938
|
-
needsApproval: true,
|
|
1939
|
-
run: async (input, context) => {
|
|
1940
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1941
|
-
await client.request(`/bills/${encodeURIComponent(input.billId)}/reject`, {
|
|
1942
|
-
method: "POST",
|
|
1943
|
-
body: omitUndefined({ memo: input.memo })
|
|
1944
|
-
});
|
|
1945
|
-
return rampBillSchema.parse(await client.request(`/bills/${encodeURIComponent(input.billId)}`));
|
|
1946
|
-
}
|
|
1947
|
-
});
|
|
1948
|
-
|
|
1949
|
-
//#endregion
|
|
1950
|
-
//#region src/operations/suspend-card.operation.ts
|
|
1951
|
-
const suspendCardOperation = new Operation({
|
|
1952
|
-
credentialSets: [rampCredentialSet],
|
|
1953
|
-
id: "ramp.suspend-card",
|
|
1954
|
-
name: "Suspend Card",
|
|
1955
|
-
description: "Temporarily suspend a Ramp card. Issues a deferred task.",
|
|
1956
|
-
input: rampSuspendCardInputSchema,
|
|
1957
|
-
output: rampDeferredTaskSchema,
|
|
1958
|
-
needsApproval: true,
|
|
1959
|
-
run: async (input, context) => {
|
|
1960
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1961
|
-
return rampDeferredTaskSchema.parse(await client.request(`/cards/${encodeURIComponent(input.cardId)}/deferred/suspension`, {
|
|
1962
|
-
method: "POST",
|
|
1963
|
-
body: {}
|
|
1964
|
-
}));
|
|
1965
|
-
}
|
|
1966
|
-
});
|
|
1967
|
-
|
|
1968
|
-
//#endregion
|
|
1969
|
-
//#region src/operations/terminate-card.operation.ts
|
|
1970
|
-
const terminateCardOperation = new Operation({
|
|
1971
|
-
credentialSets: [rampCredentialSet],
|
|
1972
|
-
id: "ramp.terminate-card",
|
|
1973
|
-
name: "Terminate Card",
|
|
1974
|
-
description: "Permanently terminate a Ramp card. This is irreversible.",
|
|
1975
|
-
input: rampTerminateCardInputSchema,
|
|
1976
|
-
output: rampDeferredTaskSchema,
|
|
1977
|
-
needsApproval: true,
|
|
1978
|
-
run: async (input, context) => {
|
|
1979
|
-
const client = createRampClient(context.credentials.ramp);
|
|
1980
|
-
const { cardId, idempotency_key } = input;
|
|
1981
|
-
return rampDeferredTaskSchema.parse(await client.request(`/cards/${encodeURIComponent(cardId)}/deferred/termination`, {
|
|
1982
|
-
method: "POST",
|
|
1983
|
-
body: {},
|
|
1984
|
-
...idempotency_key !== void 0 ? { idempotencyKey: idempotency_key } : {}
|
|
1985
|
-
}));
|
|
1986
|
-
}
|
|
1987
|
-
});
|
|
1988
|
-
|
|
1989
|
-
//#endregion
|
|
1990
|
-
//#region src/operations/unsuspend-card.operation.ts
|
|
1991
|
-
const unsuspendCardOperation = new Operation({
|
|
1992
|
-
credentialSets: [rampCredentialSet],
|
|
1993
|
-
id: "ramp.unsuspend-card",
|
|
1994
|
-
name: "Unsuspend Card",
|
|
1995
|
-
description: "Restore a previously suspended Ramp card. Issues a deferred task.",
|
|
1996
|
-
input: rampUnsuspendCardInputSchema,
|
|
1997
|
-
output: rampDeferredTaskSchema,
|
|
1998
|
-
needsApproval: true,
|
|
1999
|
-
run: async (input, context) => {
|
|
2000
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2001
|
-
return rampDeferredTaskSchema.parse(await client.request(`/cards/${encodeURIComponent(input.cardId)}/deferred/unsuspension`, {
|
|
2002
|
-
method: "POST",
|
|
2003
|
-
body: {}
|
|
2004
|
-
}));
|
|
2005
|
-
}
|
|
2006
|
-
});
|
|
2007
|
-
|
|
2008
|
-
//#endregion
|
|
2009
|
-
//#region src/operations/update-accounting-field.operation.ts
|
|
2010
|
-
const updateAccountingFieldOperation = new Operation({
|
|
2011
|
-
credentialSets: [rampCredentialSet],
|
|
2012
|
-
id: "ramp.update-accounting-field",
|
|
2013
|
-
name: "Update Accounting Field",
|
|
2014
|
-
description: "Update an existing custom accounting field.",
|
|
2015
|
-
input: rampAccountingFieldUpdateInputSchema,
|
|
2016
|
-
output: rampAccountingFieldSchema,
|
|
2017
|
-
needsApproval: true,
|
|
2018
|
-
run: async (input, context) => {
|
|
2019
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2020
|
-
const { fieldId, ...body } = input;
|
|
2021
|
-
await client.request(`/accounting/fields/${encodeURIComponent(fieldId)}`, {
|
|
2022
|
-
method: "PATCH",
|
|
2023
|
-
body: omitUndefined(body)
|
|
2024
|
-
});
|
|
2025
|
-
return rampAccountingFieldSchema.parse(await client.request(`/accounting/fields/${encodeURIComponent(fieldId)}`));
|
|
2026
|
-
}
|
|
2027
|
-
});
|
|
2028
|
-
|
|
2029
|
-
//#endregion
|
|
2030
|
-
//#region src/operations/update-bill.operation.ts
|
|
2031
|
-
const updateBillOperation = new Operation({
|
|
2032
|
-
credentialSets: [rampCredentialSet],
|
|
2033
|
-
id: "ramp.update-bill",
|
|
2034
|
-
name: "Update Bill",
|
|
2035
|
-
description: "Update memo or date fields on an existing Ramp bill.",
|
|
2036
|
-
input: rampBillUpdateInputSchema,
|
|
2037
|
-
output: rampBillSchema,
|
|
2038
|
-
needsApproval: true,
|
|
2039
|
-
run: async (input, context) => {
|
|
2040
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2041
|
-
const { billId, ...body } = input;
|
|
2042
|
-
await client.request(`/bills/${encodeURIComponent(billId)}`, {
|
|
2043
|
-
method: "PATCH",
|
|
2044
|
-
body: omitUndefined(body)
|
|
2045
|
-
});
|
|
2046
|
-
return rampBillSchema.parse(await client.request(`/bills/${encodeURIComponent(billId)}`));
|
|
2047
|
-
}
|
|
2048
|
-
});
|
|
2049
|
-
|
|
2050
|
-
//#endregion
|
|
2051
|
-
//#region src/operations/update-card.operation.ts
|
|
2052
|
-
const updateCardOperation = new Operation({
|
|
2053
|
-
credentialSets: [rampCredentialSet],
|
|
2054
|
-
id: "ramp.update-card",
|
|
2055
|
-
name: "Update Card",
|
|
2056
|
-
description: "Update display name or spending restrictions on an existing Ramp card.",
|
|
2057
|
-
input: rampCardUpdateInputSchema,
|
|
2058
|
-
output: rampCardSchema,
|
|
2059
|
-
needsApproval: true,
|
|
2060
|
-
run: async (input, context) => {
|
|
2061
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2062
|
-
const { cardId, ...body } = input;
|
|
2063
|
-
await client.request(`/cards/${encodeURIComponent(cardId)}`, {
|
|
2064
|
-
method: "PATCH",
|
|
2065
|
-
body: omitUndefined(body)
|
|
2066
|
-
});
|
|
2067
|
-
return rampCardSchema.parse(await client.request(`/cards/${encodeURIComponent(cardId)}`));
|
|
2068
|
-
}
|
|
2069
|
-
});
|
|
2070
|
-
|
|
2071
|
-
//#endregion
|
|
2072
|
-
//#region src/operations/update-department.operation.ts
|
|
2073
|
-
const updateDepartmentOperation = new Operation({
|
|
2074
|
-
credentialSets: [rampCredentialSet],
|
|
2075
|
-
id: "ramp.update-department",
|
|
2076
|
-
name: "Update Department",
|
|
2077
|
-
description: "Rename an existing Ramp department.",
|
|
2078
|
-
input: rampDepartmentUpdateInputSchema,
|
|
2079
|
-
output: rampDepartmentSchema,
|
|
2080
|
-
needsApproval: true,
|
|
2081
|
-
run: async (input, context) => {
|
|
2082
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2083
|
-
const { departmentId, name } = input;
|
|
2084
|
-
await client.request(`/departments/${encodeURIComponent(departmentId)}`, {
|
|
2085
|
-
method: "PATCH",
|
|
2086
|
-
body: { name }
|
|
2087
|
-
});
|
|
2088
|
-
return rampDepartmentSchema.parse(await client.request(`/departments/${encodeURIComponent(departmentId)}`));
|
|
2089
|
-
}
|
|
2090
|
-
});
|
|
2091
|
-
|
|
2092
|
-
//#endregion
|
|
2093
|
-
//#region src/operations/update-limit.operation.ts
|
|
2094
|
-
const updateLimitOperation = new Operation({
|
|
2095
|
-
credentialSets: [rampCredentialSet],
|
|
2096
|
-
id: "ramp.update-limit",
|
|
2097
|
-
name: "Update Limit",
|
|
2098
|
-
description: "Update display name or spending restrictions on an existing Ramp limit.",
|
|
2099
|
-
input: rampLimitUpdateInputSchema,
|
|
2100
|
-
output: rampLimitSchema,
|
|
2101
|
-
needsApproval: true,
|
|
2102
|
-
run: async (input, context) => {
|
|
2103
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2104
|
-
const { limitId, ...body } = input;
|
|
2105
|
-
await client.request(`/limits/${encodeURIComponent(limitId)}`, {
|
|
2106
|
-
method: "PATCH",
|
|
2107
|
-
body: omitUndefined(body)
|
|
2108
|
-
});
|
|
2109
|
-
return rampLimitSchema.parse(await client.request(`/limits/${encodeURIComponent(limitId)}`));
|
|
2110
|
-
}
|
|
2111
|
-
});
|
|
2112
|
-
|
|
2113
|
-
//#endregion
|
|
2114
|
-
//#region src/operations/update-location.operation.ts
|
|
2115
|
-
const updateLocationOperation = new Operation({
|
|
2116
|
-
credentialSets: [rampCredentialSet],
|
|
2117
|
-
id: "ramp.update-location",
|
|
2118
|
-
name: "Update Location",
|
|
2119
|
-
description: "Rename an existing Ramp location.",
|
|
2120
|
-
input: rampLocationUpdateInputSchema,
|
|
2121
|
-
output: rampLocationSchema,
|
|
2122
|
-
needsApproval: true,
|
|
2123
|
-
run: async (input, context) => {
|
|
2124
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2125
|
-
const { locationId, name } = input;
|
|
2126
|
-
await client.request(`/locations/${encodeURIComponent(locationId)}`, {
|
|
2127
|
-
method: "PATCH",
|
|
2128
|
-
body: { name }
|
|
2129
|
-
});
|
|
2130
|
-
return rampLocationSchema.parse(await client.request(`/locations/${encodeURIComponent(locationId)}`));
|
|
2131
|
-
}
|
|
2132
|
-
});
|
|
2133
|
-
|
|
2134
|
-
//#endregion
|
|
2135
|
-
//#region src/operations/update-user.operation.ts
|
|
2136
|
-
const updateUserOperation = new Operation({
|
|
2137
|
-
credentialSets: [rampCredentialSet],
|
|
2138
|
-
id: "ramp.update-user",
|
|
2139
|
-
name: "Update User",
|
|
2140
|
-
description: "Update assignable fields on a Ramp user (department, location, manager, role, is_manager).",
|
|
2141
|
-
input: rampUserUpdateInputSchema,
|
|
2142
|
-
output: rampUserSchema,
|
|
2143
|
-
needsApproval: true,
|
|
2144
|
-
run: async (input, context) => {
|
|
2145
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2146
|
-
const { userId, ...body } = input;
|
|
2147
|
-
await client.request(`/users/${encodeURIComponent(userId)}`, {
|
|
2148
|
-
method: "PATCH",
|
|
2149
|
-
body: omitUndefined(body)
|
|
2150
|
-
});
|
|
2151
|
-
return rampUserSchema.parse(await client.request(`/users/${encodeURIComponent(userId)}`));
|
|
2152
|
-
}
|
|
2153
|
-
});
|
|
2154
|
-
|
|
2155
|
-
//#endregion
|
|
2156
|
-
//#region src/operations/update-vendor.operation.ts
|
|
2157
|
-
const updateVendorOperation = new Operation({
|
|
2158
|
-
credentialSets: [rampCredentialSet],
|
|
2159
|
-
id: "ramp.update-vendor",
|
|
2160
|
-
name: "Update Vendor",
|
|
2161
|
-
description: "Update editable fields on an existing Ramp vendor.",
|
|
2162
|
-
input: rampVendorUpdateInputSchema,
|
|
2163
|
-
output: rampVendorSchema,
|
|
2164
|
-
needsApproval: true,
|
|
2165
|
-
run: async (input, context) => {
|
|
2166
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2167
|
-
const { vendorId, ...body } = input;
|
|
2168
|
-
await client.request(`/vendors/${encodeURIComponent(vendorId)}`, {
|
|
2169
|
-
method: "PATCH",
|
|
2170
|
-
body: omitUndefined(body)
|
|
2171
|
-
});
|
|
2172
|
-
return rampVendorSchema.parse(await client.request(`/vendors/${encodeURIComponent(vendorId)}`));
|
|
2173
|
-
}
|
|
2174
|
-
});
|
|
2175
|
-
|
|
2176
|
-
//#endregion
|
|
2177
|
-
//#region src/operations/update-vendor-bank-account.operation.ts
|
|
2178
|
-
const updateVendorBankAccountOperation = new Operation({
|
|
2179
|
-
credentialSets: [rampCredentialSet],
|
|
2180
|
-
id: "ramp.update-vendor-bank-account",
|
|
2181
|
-
name: "Update Vendor Bank Account",
|
|
2182
|
-
description: "Update editable metadata on a vendor bank account.",
|
|
2183
|
-
input: rampVendorBankAccountUpdateInputSchema,
|
|
2184
|
-
output: rampVendorBankAccountSchema,
|
|
2185
|
-
needsApproval: true,
|
|
2186
|
-
run: async (input, context) => {
|
|
2187
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2188
|
-
const { vendorBankAccountId, ...body } = input;
|
|
2189
|
-
await client.request(`/vendor-bank-accounts/${encodeURIComponent(vendorBankAccountId)}`, {
|
|
2190
|
-
method: "PATCH",
|
|
2191
|
-
body: omitUndefined(body)
|
|
2192
|
-
});
|
|
2193
|
-
return rampVendorBankAccountSchema.parse(await client.request(`/vendor-bank-accounts/${encodeURIComponent(vendorBankAccountId)}`));
|
|
2194
|
-
}
|
|
2195
|
-
});
|
|
2196
|
-
|
|
2197
|
-
//#endregion
|
|
2198
|
-
//#region src/operations/update-webhook-subscription.operation.ts
|
|
2199
|
-
const updateWebhookSubscriptionOperation = new Operation({
|
|
2200
|
-
credentialSets: [rampCredentialSet],
|
|
2201
|
-
id: "ramp.update-webhook-subscription",
|
|
2202
|
-
name: "Update Webhook Subscription",
|
|
2203
|
-
description: "Update URL, active state, or enabled events on an existing subscription.",
|
|
2204
|
-
input: rampWebhookSubscriptionUpdateInputSchema,
|
|
2205
|
-
output: rampWebhookSubscriptionSchema,
|
|
2206
|
-
needsApproval: true,
|
|
2207
|
-
run: async (input, context) => {
|
|
2208
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2209
|
-
const { webhookId, ...body } = input;
|
|
2210
|
-
await client.request(`/webhooks/${encodeURIComponent(webhookId)}`, {
|
|
2211
|
-
method: "PATCH",
|
|
2212
|
-
body: omitUndefined(body)
|
|
2213
|
-
});
|
|
2214
|
-
return rampWebhookSubscriptionSchema.parse(await client.request(`/webhooks/${encodeURIComponent(webhookId)}`));
|
|
2215
|
-
}
|
|
2216
|
-
});
|
|
2217
|
-
|
|
2218
|
-
//#endregion
|
|
2219
|
-
//#region src/operations/upload-accounting-field-options.operation.ts
|
|
2220
|
-
const uploadAccountingFieldOptionsOperation = new Operation({
|
|
2221
|
-
credentialSets: [rampCredentialSet],
|
|
2222
|
-
id: "ramp.upload-accounting-field-options",
|
|
2223
|
-
name: "Upload Accounting Field Options",
|
|
2224
|
-
description: "Bulk upload options for a custom accounting field.",
|
|
2225
|
-
input: rampAccountingFieldOptionUploadInputSchema,
|
|
2226
|
-
output: rampAccountingFieldOptionListSchema,
|
|
2227
|
-
needsApproval: true,
|
|
2228
|
-
run: async (input, context) => {
|
|
2229
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2230
|
-
return rampAccountingFieldOptionListSchema.parse(await client.request(`/accounting/fields/${encodeURIComponent(input.field_id)}/options`, {
|
|
2231
|
-
method: "POST",
|
|
2232
|
-
body: { options: input.options }
|
|
2233
|
-
}));
|
|
2234
|
-
}
|
|
2235
|
-
});
|
|
2236
|
-
|
|
2237
|
-
//#endregion
|
|
2238
|
-
//#region src/operations/upload-accounting-subsidiaries.operation.ts
|
|
2239
|
-
const uploadAccountingSubsidiariesOperation = new Operation({
|
|
2240
|
-
credentialSets: [rampCredentialSet],
|
|
2241
|
-
id: "ramp.upload-accounting-subsidiaries",
|
|
2242
|
-
name: "Upload Accounting Subsidiaries",
|
|
2243
|
-
description: "Bulk-upload subsidiaries from the connected accounting system.",
|
|
2244
|
-
input: rampAccountingSubsidiaryUploadInputSchema,
|
|
2245
|
-
output: rampAccountingSubsidiaryListSchema,
|
|
2246
|
-
needsApproval: true,
|
|
2247
|
-
run: async (input, context) => {
|
|
2248
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2249
|
-
return rampAccountingSubsidiaryListSchema.parse(await client.request("/accounting/subsidiaries", {
|
|
2250
|
-
method: "POST",
|
|
2251
|
-
body: input
|
|
2252
|
-
}));
|
|
2253
|
-
}
|
|
2254
|
-
});
|
|
2255
|
-
|
|
2256
|
-
//#endregion
|
|
2257
|
-
//#region src/operations/upload-accounting-vendors.operation.ts
|
|
2258
|
-
const uploadAccountingVendorsOperation = new Operation({
|
|
2259
|
-
credentialSets: [rampCredentialSet],
|
|
2260
|
-
id: "ramp.upload-accounting-vendors",
|
|
2261
|
-
name: "Upload Accounting Vendors",
|
|
2262
|
-
description: "Bulk-upload vendors from the connected accounting system.",
|
|
2263
|
-
input: rampAccountingVendorUploadInputSchema,
|
|
2264
|
-
output: rampAccountingVendorListSchema,
|
|
2265
|
-
needsApproval: true,
|
|
2266
|
-
run: async (input, context) => {
|
|
2267
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2268
|
-
return rampAccountingVendorListSchema.parse(await client.request("/accounting/vendors", {
|
|
2269
|
-
method: "POST",
|
|
2270
|
-
body: input
|
|
2271
|
-
}));
|
|
2272
|
-
}
|
|
2273
|
-
});
|
|
2274
|
-
|
|
2275
|
-
//#endregion
|
|
2276
|
-
//#region src/operations/upload-gl-accounts.operation.ts
|
|
2277
|
-
const uploadGlAccountsOperation = new Operation({
|
|
2278
|
-
credentialSets: [rampCredentialSet],
|
|
2279
|
-
id: "ramp.upload-gl-accounts",
|
|
2280
|
-
name: "Upload GL Accounts",
|
|
2281
|
-
description: "Bulk-upload GL accounts from the connected accounting system.",
|
|
2282
|
-
input: rampGlAccountUploadInputSchema,
|
|
2283
|
-
output: rampGlAccountListSchema,
|
|
2284
|
-
needsApproval: true,
|
|
2285
|
-
run: async (input, context) => {
|
|
2286
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2287
|
-
return rampGlAccountListSchema.parse(await client.request("/accounting/gl-accounts", {
|
|
2288
|
-
method: "POST",
|
|
2289
|
-
body: input
|
|
2290
|
-
}));
|
|
2291
|
-
}
|
|
2292
|
-
});
|
|
2293
|
-
|
|
2294
|
-
//#endregion
|
|
2295
|
-
//#region src/operations/upload-receipt.operation.ts
|
|
2296
|
-
const uploadReceiptOperation = new Operation({
|
|
2297
|
-
credentialSets: [rampCredentialSet],
|
|
2298
|
-
id: "ramp.upload-receipt",
|
|
2299
|
-
name: "Upload Receipt",
|
|
2300
|
-
description: "Upload a receipt image to Ramp. The image bytes must be supplied as base64. Optionally attach to a transaction.",
|
|
2301
|
-
input: rampReceiptUploadInputSchema,
|
|
2302
|
-
output: rampReceiptSchema,
|
|
2303
|
-
needsApproval: true,
|
|
2304
|
-
run: async (input, context) => {
|
|
2305
|
-
const client = createRampClient(context.credentials.ramp);
|
|
2306
|
-
const form = new FormData();
|
|
2307
|
-
const bytes = Uint8Array.from(atob(input.dataBase64), (ch) => ch.charCodeAt(0));
|
|
2308
|
-
const blob = new Blob([bytes], { type: input.contentType });
|
|
2309
|
-
form.append("file", blob, input.filename);
|
|
2310
|
-
form.append("user_id", input.user_id);
|
|
2311
|
-
if (input.transaction_id !== void 0) form.append("transaction_id", input.transaction_id);
|
|
2312
|
-
return rampReceiptSchema.parse(await client.request("/receipts", {
|
|
2313
|
-
method: "POST",
|
|
2314
|
-
body: form,
|
|
2315
|
-
multipart: true,
|
|
2316
|
-
...input.idempotency_key !== void 0 ? { idempotencyKey: input.idempotency_key } : {}
|
|
2317
|
-
}));
|
|
2318
|
-
}
|
|
2319
|
-
});
|
|
2320
|
-
|
|
2321
|
-
//#endregion
|
|
2322
|
-
export { listAccountingFieldOptionsOperation as $, cancelBillOperation as $t, listSpendRequestsOperation as A, getAccountingSubsidiaryOperation as At, listDepartmentsOperation as B, createWebhookSubscriptionOperation as Bt, listVendorsOperation as C, getCardOperation as Ct, listTransfersOperation as D, getAccountingVendorOperation as Dt, listUnifiedRequestsOperation as E, getApplicationOperation as Et, listMemosOperation as F, deleteLocationOperation as Ft, listBillsOperation as G, createLocationOperation as Gt, listCardsOperation as H, createVendorBankAccountOperation as Ht, listLocationsOperation as I, deleteLimitOperation as It, listAccountingVendorsOperation as J, createCardProgramOperation as Jt, listApplicationsOperation as K, createLimitOperation as Kt, listLimitsOperation as L, deleteDepartmentOperation as Lt, listReimbursementsOperation as M, deleteWebhookSubscriptionOperation as Mt, listReceiptsOperation as N, deleteVendorBankAccountOperation as Nt, listTransactionsOperation as O, getAccountingTrackingCategoryOperation as Ot, listPurchaseOrdersOperation as P, deleteVendorOperation as Pt, listAccountingFieldsOperation as Q, commentOnSpendRequestOperation as Qt, listGlAccountsOperation as R, deleteAccountingFieldOperation as Rt, listWebhookSubscriptionsOperation as S, getCardProgramOperation as St, listUsersOperation as T, getBillOperation as Tt, listCardProgramsOperation as U, createVendorOperation as Ut, listCashbacksOperation as V, createVirtualCardOperation as Vt, listCardFundTransfersOperation as W, createPhysicalCardOperation as Wt, listAccountingSyncsOperation as X, createAccountingSyncOperation as Xt, listAccountingTrackingCategoriesOperation as Y, createBillOperation as Yt, listAccountingSubsidiariesOperation as Z, createAccountingFieldOperation as Zt, terminateCardOperation as _, getGlAccountOperation as _t, uploadAccountingFieldOptionsOperation as a, getUnifiedRequestOperation as at, optOutReceiptIntegrationOperation as b, getDeferredTaskOperation as bt, updateVendorOperation as c, getStatementOperation as ct, updateLimitOperation as d, getReimbursementOperation as dt, approveBillOperation as en, inviteUserOperation as et, updateDepartmentOperation as f, getReceiptOperation as ft, unsuspendCardOperation as g, getLimitOperation as gt, updateAccountingFieldOperation as h, getLocationOperation as ht, uploadAccountingSubsidiariesOperation as i, getUserOperation as it, listSpendProgramsOperation as j, getAccountingFieldOperation as jt, listStatementsOperation as k, getAccountingSyncOperation as kt, updateUserOperation as l, getSpendRequestOperation as lt, updateBillOperation as m, getMemoOperation as mt, uploadGlAccountsOperation as n, getVendorBankAccountOperation as nt, updateWebhookSubscriptionOperation as o, getTransferOperation as ot, updateCardOperation as p, getPurchaseOrderOperation as pt, listAllTransactionsOperation as q, createDepartmentOperation as qt, uploadAccountingVendorsOperation as r, getVendorOperation as rt, updateVendorBankAccountOperation as s, getTransactionOperation as st, uploadReceiptOperation as t, getWebhookSubscriptionOperation as tt, updateLocationOperation as u, getSpendProgramOperation as ut, suspendCardOperation as v, getEntityOperation as vt, listVendorBankAccountsOperation as w, getBusinessOperation as wt, optInReceiptIntegrationOperation as x, getCashbackOperation as xt, rejectBillOperation as y, getDepartmentOperation as yt, listEntitiesOperation as z, deactivateUserOperation as zt };
|