@keystrokehq/ramp 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-department.cjs +2 -2
- package/dist/actions/create-department.cjs.map +1 -1
- package/dist/actions/create-department.d.cts +10 -3
- package/dist/actions/create-department.d.cts.map +1 -1
- package/dist/actions/create-department.d.mts +10 -3
- package/dist/actions/create-department.d.mts.map +1 -1
- package/dist/actions/create-department.mjs +2 -2
- package/dist/actions/create-department.mjs.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.cjs +4 -4
- package/dist/actions/create-inventory-item-accounting-field.cjs.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.d.cts +15 -3
- package/dist/actions/create-inventory-item-accounting-field.d.cts.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.d.mts +15 -3
- package/dist/actions/create-inventory-item-accounting-field.d.mts.map +1 -1
- package/dist/actions/create-inventory-item-accounting-field.mjs +4 -4
- package/dist/actions/create-inventory-item-accounting-field.mjs.map +1 -1
- package/dist/actions/create-memo.cjs +2 -2
- package/dist/actions/create-memo.cjs.map +1 -1
- package/dist/actions/create-memo.d.cts +14 -3
- package/dist/actions/create-memo.d.cts.map +1 -1
- package/dist/actions/create-memo.d.mts +14 -3
- package/dist/actions/create-memo.d.mts.map +1 -1
- package/dist/actions/create-memo.mjs +2 -2
- package/dist/actions/create-memo.mjs.map +1 -1
- package/dist/actions/create-mileage-reimbursement.cjs +13 -13
- package/dist/actions/create-mileage-reimbursement.cjs.map +1 -1
- package/dist/actions/create-mileage-reimbursement.d.cts +149 -3
- package/dist/actions/create-mileage-reimbursement.d.cts.map +1 -1
- package/dist/actions/create-mileage-reimbursement.d.mts +149 -3
- package/dist/actions/create-mileage-reimbursement.d.mts.map +1 -1
- package/dist/actions/create-mileage-reimbursement.mjs +13 -13
- package/dist/actions/create-mileage-reimbursement.mjs.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.cjs +8 -8
- package/dist/actions/create-new-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.d.cts +38 -3
- package/dist/actions/create-new-custom-accounting-field.d.cts.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.d.mts +38 -3
- package/dist/actions/create-new-custom-accounting-field.d.mts.map +1 -1
- package/dist/actions/create-new-custom-accounting-field.mjs +8 -8
- package/dist/actions/create-new-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.cjs +4 -4
- package/dist/actions/create-tax-code-accounting-field.cjs.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.d.cts +15 -3
- package/dist/actions/create-tax-code-accounting-field.d.cts.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.d.mts +15 -3
- package/dist/actions/create-tax-code-accounting-field.d.mts.map +1 -1
- package/dist/actions/create-tax-code-accounting-field.mjs +4 -4
- package/dist/actions/create-tax-code-accounting-field.mjs.map +1 -1
- package/dist/actions/create-user-invite.cjs +1 -1
- package/dist/actions/create-user-invite.cjs.map +1 -1
- package/dist/actions/create-user-invite.d.cts +33 -3
- package/dist/actions/create-user-invite.d.cts.map +1 -1
- package/dist/actions/create-user-invite.d.mts +33 -3
- package/dist/actions/create-user-invite.d.mts.map +1 -1
- package/dist/actions/create-user-invite.mjs +1 -1
- package/dist/actions/create-user-invite.mjs.map +1 -1
- package/dist/actions/create-webhook-subscription.cjs +5 -5
- package/dist/actions/create-webhook-subscription.cjs.map +1 -1
- package/dist/actions/create-webhook-subscription.d.cts +48 -3
- package/dist/actions/create-webhook-subscription.d.cts.map +1 -1
- package/dist/actions/create-webhook-subscription.d.mts +48 -3
- package/dist/actions/create-webhook-subscription.d.mts.map +1 -1
- package/dist/actions/create-webhook-subscription.mjs +5 -5
- package/dist/actions/create-webhook-subscription.mjs.map +1 -1
- package/dist/actions/deactivate-user.cjs.map +1 -1
- package/dist/actions/deactivate-user.d.cts +7 -3
- package/dist/actions/deactivate-user.d.cts.map +1 -1
- package/dist/actions/deactivate-user.d.mts +7 -3
- package/dist/actions/deactivate-user.d.mts.map +1 -1
- package/dist/actions/deactivate-user.mjs.map +1 -1
- package/dist/actions/delete-accounting-account.cjs.map +1 -1
- package/dist/actions/delete-accounting-account.d.cts +9 -3
- package/dist/actions/delete-accounting-account.d.cts.map +1 -1
- package/dist/actions/delete-accounting-account.d.mts +9 -3
- package/dist/actions/delete-accounting-account.d.mts.map +1 -1
- package/dist/actions/delete-accounting-account.mjs.map +1 -1
- package/dist/actions/delete-accounting-connection.cjs.map +1 -1
- package/dist/actions/delete-accounting-connection.d.cts +5 -3
- package/dist/actions/delete-accounting-connection.d.cts.map +1 -1
- package/dist/actions/delete-accounting-connection.d.mts +5 -3
- package/dist/actions/delete-accounting-connection.d.mts.map +1 -1
- package/dist/actions/delete-accounting-connection.mjs.map +1 -1
- package/dist/actions/delete-accounting-fields.cjs.map +1 -1
- package/dist/actions/delete-accounting-fields.d.cts +9 -3
- package/dist/actions/delete-accounting-fields.d.cts.map +1 -1
- package/dist/actions/delete-accounting-fields.d.mts +9 -3
- package/dist/actions/delete-accounting-fields.d.mts.map +1 -1
- package/dist/actions/delete-accounting-fields.mjs.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.d.cts +9 -3
- package/dist/actions/delete-accounting-inventory-item-options.d.cts.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.d.mts +9 -3
- package/dist/actions/delete-accounting-inventory-item-options.d.mts.map +1 -1
- package/dist/actions/delete-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.d.cts +9 -3
- package/dist/actions/delete-accounting-tax-code-options.d.cts.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.d.mts +9 -3
- package/dist/actions/delete-accounting-tax-code-options.d.mts.map +1 -1
- package/dist/actions/delete-accounting-tax-code-options.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-code.d.cts +5 -3
- package/dist/actions/delete-accounting-tax-code.d.cts.map +1 -1
- package/dist/actions/delete-accounting-tax-code.d.mts +5 -3
- package/dist/actions/delete-accounting-tax-code.d.mts.map +1 -1
- package/dist/actions/delete-accounting-tax-code.mjs.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.cjs.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.d.cts +11 -3
- package/dist/actions/delete-accounting-tax-rates.d.cts.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.d.mts +11 -3
- package/dist/actions/delete-accounting-tax-rates.d.mts.map +1 -1
- package/dist/actions/delete-accounting-tax-rates.mjs.map +1 -1
- package/dist/actions/delete-accounting-vendors.cjs.map +1 -1
- package/dist/actions/delete-accounting-vendors.d.cts +9 -3
- package/dist/actions/delete-accounting-vendors.d.cts.map +1 -1
- package/dist/actions/delete-accounting-vendors.d.mts +9 -3
- package/dist/actions/delete-accounting-vendors.d.mts.map +1 -1
- package/dist/actions/delete-accounting-vendors.mjs.map +1 -1
- package/dist/actions/delete-custom-field-option.cjs.map +1 -1
- package/dist/actions/delete-custom-field-option.d.cts +9 -3
- package/dist/actions/delete-custom-field-option.d.cts.map +1 -1
- package/dist/actions/delete-custom-field-option.d.mts +9 -3
- package/dist/actions/delete-custom-field-option.d.mts.map +1 -1
- package/dist/actions/delete-custom-field-option.mjs.map +1 -1
- package/dist/actions/delete-inventory-item-field.cjs.map +1 -1
- package/dist/actions/delete-inventory-item-field.d.cts +5 -3
- package/dist/actions/delete-inventory-item-field.d.cts.map +1 -1
- package/dist/actions/delete-inventory-item-field.d.mts +5 -3
- package/dist/actions/delete-inventory-item-field.d.mts.map +1 -1
- package/dist/actions/delete-inventory-item-field.mjs.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.cjs +10 -10
- package/dist/actions/delete-spend-allocation-delete-users.cjs.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.d.cts +76 -3
- package/dist/actions/delete-spend-allocation-delete-users.d.cts.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.d.mts +76 -3
- package/dist/actions/delete-spend-allocation-delete-users.d.mts.map +1 -1
- package/dist/actions/delete-spend-allocation-delete-users.mjs +10 -10
- package/dist/actions/delete-spend-allocation-delete-users.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +9 -3
- package/dist/actions/delete-webhook.d.cts.map +1 -1
- package/dist/actions/delete-webhook.d.mts +9 -3
- package/dist/actions/delete-webhook.d.mts.map +1 -1
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/fetch-accounting-account.cjs +5 -5
- package/dist/actions/fetch-accounting-account.cjs.map +1 -1
- package/dist/actions/fetch-accounting-account.d.cts +25 -3
- package/dist/actions/fetch-accounting-account.d.cts.map +1 -1
- package/dist/actions/fetch-accounting-account.d.mts +25 -3
- package/dist/actions/fetch-accounting-account.d.mts.map +1 -1
- package/dist/actions/fetch-accounting-account.mjs +5 -5
- package/dist/actions/fetch-accounting-account.mjs.map +1 -1
- package/dist/actions/fetch-accounting-vendor.cjs +7 -7
- package/dist/actions/fetch-accounting-vendor.cjs.map +1 -1
- package/dist/actions/fetch-accounting-vendor.d.cts +25 -3
- package/dist/actions/fetch-accounting-vendor.d.cts.map +1 -1
- package/dist/actions/fetch-accounting-vendor.d.mts +25 -3
- package/dist/actions/fetch-accounting-vendor.d.mts.map +1 -1
- package/dist/actions/fetch-accounting-vendor.mjs +7 -7
- package/dist/actions/fetch-accounting-vendor.mjs.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.cjs +8 -8
- package/dist/actions/fetch-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.d.cts +18 -3
- package/dist/actions/fetch-custom-accounting-field.d.cts.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.d.mts +18 -3
- package/dist/actions/fetch-custom-accounting-field.d.mts.map +1 -1
- package/dist/actions/fetch-custom-accounting-field.mjs +8 -8
- package/dist/actions/fetch-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/get-accounting-accounts.cjs.map +1 -1
- package/dist/actions/get-accounting-accounts.d.cts +38 -3
- package/dist/actions/get-accounting-accounts.d.cts.map +1 -1
- package/dist/actions/get-accounting-accounts.d.mts +38 -3
- package/dist/actions/get-accounting-accounts.d.mts.map +1 -1
- package/dist/actions/get-accounting-accounts.mjs.map +1 -1
- package/dist/actions/get-accounting-all-connections.cjs.map +1 -1
- package/dist/actions/get-accounting-all-connections.d.cts +11 -3
- package/dist/actions/get-accounting-all-connections.d.cts.map +1 -1
- package/dist/actions/get-accounting-all-connections.d.mts +11 -3
- package/dist/actions/get-accounting-all-connections.d.mts.map +1 -1
- package/dist/actions/get-accounting-all-connections.mjs.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.cjs +6 -6
- package/dist/actions/get-accounting-connection-by-id.cjs.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.d.cts +29 -3
- package/dist/actions/get-accounting-connection-by-id.d.cts.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.d.mts +29 -3
- package/dist/actions/get-accounting-connection-by-id.d.mts.map +1 -1
- package/dist/actions/get-accounting-connection-by-id.mjs +6 -6
- package/dist/actions/get-accounting-connection-by-id.mjs.map +1 -1
- package/dist/actions/get-accounting-connection.cjs.map +1 -1
- package/dist/actions/get-accounting-connection.d.cts +15 -3
- package/dist/actions/get-accounting-connection.d.cts.map +1 -1
- package/dist/actions/get-accounting-connection.d.mts +15 -3
- package/dist/actions/get-accounting-connection.d.mts.map +1 -1
- package/dist/actions/get-accounting-connection.mjs.map +1 -1
- package/dist/actions/get-accounting-fields.cjs.map +1 -1
- package/dist/actions/get-accounting-fields.d.cts +19 -3
- package/dist/actions/get-accounting-fields.d.cts.map +1 -1
- package/dist/actions/get-accounting-fields.d.mts +19 -3
- package/dist/actions/get-accounting-fields.d.mts.map +1 -1
- package/dist/actions/get-accounting-fields.mjs.map +1 -1
- package/dist/actions/get-accounting-vendors.cjs.map +1 -1
- package/dist/actions/get-accounting-vendors.d.cts +19 -3
- package/dist/actions/get-accounting-vendors.d.cts.map +1 -1
- package/dist/actions/get-accounting-vendors.d.mts +19 -3
- package/dist/actions/get-accounting-vendors.d.mts.map +1 -1
- package/dist/actions/get-accounting-vendors.mjs.map +1 -1
- package/dist/actions/get-all-transactions.cjs +3 -3
- package/dist/actions/get-all-transactions.cjs.map +1 -1
- package/dist/actions/get-all-transactions.d.cts +91 -3
- package/dist/actions/get-all-transactions.d.cts.map +1 -1
- package/dist/actions/get-all-transactions.d.mts +91 -3
- package/dist/actions/get-all-transactions.d.mts.map +1 -1
- package/dist/actions/get-all-transactions.mjs +3 -3
- package/dist/actions/get-all-transactions.mjs.map +1 -1
- package/dist/actions/get-card-vault-resource.cjs +3 -3
- package/dist/actions/get-card-vault-resource.cjs.map +1 -1
- package/dist/actions/get-card-vault-resource.d.cts +11 -3
- package/dist/actions/get-card-vault-resource.d.cts.map +1 -1
- package/dist/actions/get-card-vault-resource.d.mts +11 -3
- package/dist/actions/get-card-vault-resource.d.mts.map +1 -1
- package/dist/actions/get-card-vault-resource.mjs +3 -3
- package/dist/actions/get-card-vault-resource.mjs.map +1 -1
- package/dist/actions/get-card.cjs +9 -9
- package/dist/actions/get-card.cjs.map +1 -1
- package/dist/actions/get-card.d.cts +48 -3
- package/dist/actions/get-card.d.cts.map +1 -1
- package/dist/actions/get-card.d.mts +48 -3
- package/dist/actions/get-card.d.mts.map +1 -1
- package/dist/actions/get-card.mjs +9 -9
- package/dist/actions/get-card.mjs.map +1 -1
- package/dist/actions/get-custom-field-option.cjs.map +1 -1
- package/dist/actions/get-custom-field-option.d.cts +19 -3
- package/dist/actions/get-custom-field-option.d.cts.map +1 -1
- package/dist/actions/get-custom-field-option.d.mts +19 -3
- package/dist/actions/get-custom-field-option.d.mts.map +1 -1
- package/dist/actions/get-custom-field-option.mjs.map +1 -1
- package/dist/actions/get-department.cjs +2 -2
- package/dist/actions/get-department.cjs.map +1 -1
- package/dist/actions/get-department.d.cts +10 -3
- package/dist/actions/get-department.d.cts.map +1 -1
- package/dist/actions/get-department.d.mts +10 -3
- package/dist/actions/get-department.d.mts.map +1 -1
- package/dist/actions/get-department.mjs +2 -2
- package/dist/actions/get-department.mjs.map +1 -1
- package/dist/actions/get-inventory-item-field.cjs +4 -4
- package/dist/actions/get-inventory-item-field.cjs.map +1 -1
- package/dist/actions/get-inventory-item-field.d.cts +9 -3
- package/dist/actions/get-inventory-item-field.d.cts.map +1 -1
- package/dist/actions/get-inventory-item-field.d.mts +9 -3
- package/dist/actions/get-inventory-item-field.d.mts.map +1 -1
- package/dist/actions/get-inventory-item-field.mjs +4 -4
- package/dist/actions/get-inventory-item-field.mjs.map +1 -1
- package/dist/actions/get-memo.cjs.map +1 -1
- package/dist/actions/get-memo.d.cts +10 -3
- package/dist/actions/get-memo.d.cts.map +1 -1
- package/dist/actions/get-memo.d.mts +10 -3
- package/dist/actions/get-memo.d.mts.map +1 -1
- package/dist/actions/get-memo.mjs.map +1 -1
- package/dist/actions/get-reimbursement.cjs +4 -4
- package/dist/actions/get-reimbursement.cjs.map +1 -1
- package/dist/actions/get-reimbursement.d.cts +50 -3
- package/dist/actions/get-reimbursement.d.cts.map +1 -1
- package/dist/actions/get-reimbursement.d.mts +50 -3
- package/dist/actions/get-reimbursement.d.mts.map +1 -1
- package/dist/actions/get-reimbursement.mjs +4 -4
- package/dist/actions/get-reimbursement.mjs.map +1 -1
- package/dist/actions/get-spend-limit.cjs +13 -13
- package/dist/actions/get-spend-limit.cjs.map +1 -1
- package/dist/actions/get-spend-limit.d.cts +107 -3
- package/dist/actions/get-spend-limit.d.cts.map +1 -1
- package/dist/actions/get-spend-limit.d.mts +107 -3
- package/dist/actions/get-spend-limit.d.mts.map +1 -1
- package/dist/actions/get-spend-limit.mjs +13 -13
- package/dist/actions/get-spend-limit.mjs.map +1 -1
- package/dist/actions/get-statement.cjs +7 -7
- package/dist/actions/get-statement.cjs.map +1 -1
- package/dist/actions/get-statement.d.cts +49 -3
- package/dist/actions/get-statement.d.cts.map +1 -1
- package/dist/actions/get-statement.d.mts +49 -3
- package/dist/actions/get-statement.d.mts.map +1 -1
- package/dist/actions/get-statement.mjs +7 -7
- package/dist/actions/get-statement.mjs.map +1 -1
- package/dist/actions/get-transaction.cjs +3 -3
- package/dist/actions/get-transaction.cjs.map +1 -1
- package/dist/actions/get-transaction.d.cts +46 -3
- package/dist/actions/get-transaction.d.cts.map +1 -1
- package/dist/actions/get-transaction.d.mts +46 -3
- package/dist/actions/get-transaction.d.mts.map +1 -1
- package/dist/actions/get-transaction.mjs +3 -3
- package/dist/actions/get-transaction.mjs.map +1 -1
- package/dist/actions/get-user.cjs +9 -9
- package/dist/actions/get-user.cjs.map +1 -1
- package/dist/actions/get-user.d.cts +27 -3
- package/dist/actions/get-user.d.cts.map +1 -1
- package/dist/actions/get-user.d.mts +27 -3
- package/dist/actions/get-user.d.mts.map +1 -1
- package/dist/actions/get-user.mjs +9 -9
- package/dist/actions/get-user.mjs.map +1 -1
- package/dist/actions/get-users-deferred-status.cjs +1 -1
- package/dist/actions/get-users-deferred-status.cjs.map +1 -1
- package/dist/actions/get-users-deferred-status.d.cts +22 -3
- package/dist/actions/get-users-deferred-status.d.cts.map +1 -1
- package/dist/actions/get-users-deferred-status.d.mts +22 -3
- package/dist/actions/get-users-deferred-status.d.mts.map +1 -1
- package/dist/actions/get-users-deferred-status.mjs +1 -1
- package/dist/actions/get-users-deferred-status.mjs.map +1 -1
- package/dist/actions/get-vendor.cjs +2 -2
- package/dist/actions/get-vendor.cjs.map +1 -1
- package/dist/actions/get-vendor.d.cts +56 -3
- package/dist/actions/get-vendor.d.cts.map +1 -1
- package/dist/actions/get-vendor.d.mts +56 -3
- package/dist/actions/get-vendor.d.mts.map +1 -1
- package/dist/actions/get-vendor.mjs +2 -2
- package/dist/actions/get-vendor.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +4 -4
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +42 -3
- package/dist/actions/get-webhook.d.cts.map +1 -1
- package/dist/actions/get-webhook.d.mts +42 -3
- package/dist/actions/get-webhook.d.mts.map +1 -1
- package/dist/actions/get-webhook.mjs +4 -4
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/issue-virtual-card.cjs +1 -1
- package/dist/actions/issue-virtual-card.cjs.map +1 -1
- package/dist/actions/issue-virtual-card.d.cts +38 -3
- package/dist/actions/issue-virtual-card.d.cts.map +1 -1
- package/dist/actions/issue-virtual-card.d.mts +38 -3
- package/dist/actions/issue-virtual-card.d.mts.map +1 -1
- package/dist/actions/issue-virtual-card.mjs +1 -1
- package/dist/actions/issue-virtual-card.mjs.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.cjs +5 -5
- package/dist/actions/list-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.d.cts +28 -3
- package/dist/actions/list-accounting-inventory-item-options.d.cts.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.d.mts +28 -3
- package/dist/actions/list-accounting-inventory-item-options.d.mts.map +1 -1
- package/dist/actions/list-accounting-inventory-item-options.mjs +5 -5
- package/dist/actions/list-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/list-accounting-tax-rates.cjs +6 -6
- package/dist/actions/list-accounting-tax-rates.cjs.map +1 -1
- package/dist/actions/list-accounting-tax-rates.d.cts +21 -3
- package/dist/actions/list-accounting-tax-rates.d.cts.map +1 -1
- package/dist/actions/list-accounting-tax-rates.d.mts +21 -3
- package/dist/actions/list-accounting-tax-rates.d.mts.map +1 -1
- package/dist/actions/list-accounting-tax-rates.mjs +6 -6
- package/dist/actions/list-accounting-tax-rates.mjs.map +1 -1
- package/dist/actions/list-cards.cjs +11 -11
- package/dist/actions/list-cards.cjs.map +1 -1
- package/dist/actions/list-cards.d.cts +65 -3
- package/dist/actions/list-cards.d.cts.map +1 -1
- package/dist/actions/list-cards.d.mts +65 -3
- package/dist/actions/list-cards.d.mts.map +1 -1
- package/dist/actions/list-cards.mjs +11 -11
- package/dist/actions/list-cards.mjs.map +1 -1
- package/dist/actions/list-departments.cjs +2 -2
- package/dist/actions/list-departments.cjs.map +1 -1
- package/dist/actions/list-departments.d.cts +17 -3
- package/dist/actions/list-departments.d.cts.map +1 -1
- package/dist/actions/list-departments.d.mts +17 -3
- package/dist/actions/list-departments.d.mts.map +1 -1
- package/dist/actions/list-departments.mjs +2 -2
- package/dist/actions/list-departments.mjs.map +1 -1
- package/dist/actions/list-memos.cjs +1 -1
- package/dist/actions/list-memos.cjs.map +1 -1
- package/dist/actions/list-memos.d.cts +33 -3
- package/dist/actions/list-memos.d.cts.map +1 -1
- package/dist/actions/list-memos.d.mts +33 -3
- package/dist/actions/list-memos.d.mts.map +1 -1
- package/dist/actions/list-memos.mjs +1 -1
- package/dist/actions/list-memos.mjs.map +1 -1
- package/dist/actions/list-reimbursements.cjs +4 -4
- package/dist/actions/list-reimbursements.cjs.map +1 -1
- package/dist/actions/list-reimbursements.d.cts +91 -3
- package/dist/actions/list-reimbursements.d.cts.map +1 -1
- package/dist/actions/list-reimbursements.d.mts +91 -3
- package/dist/actions/list-reimbursements.d.mts.map +1 -1
- package/dist/actions/list-reimbursements.mjs +4 -4
- package/dist/actions/list-reimbursements.mjs.map +1 -1
- package/dist/actions/list-statements.cjs +12 -12
- package/dist/actions/list-statements.cjs.map +1 -1
- package/dist/actions/list-statements.d.cts +85 -3
- package/dist/actions/list-statements.d.cts.map +1 -1
- package/dist/actions/list-statements.d.mts +85 -3
- package/dist/actions/list-statements.d.mts.map +1 -1
- package/dist/actions/list-statements.mjs +12 -12
- package/dist/actions/list-statements.mjs.map +1 -1
- package/dist/actions/list-users.cjs +9 -9
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +45 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +45 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +9 -9
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/list-vendors-accounts.cjs +3 -3
- package/dist/actions/list-vendors-accounts.cjs.map +1 -1
- package/dist/actions/list-vendors-accounts.d.cts +22 -3
- package/dist/actions/list-vendors-accounts.d.cts.map +1 -1
- package/dist/actions/list-vendors-accounts.d.mts +22 -3
- package/dist/actions/list-vendors-accounts.d.mts.map +1 -1
- package/dist/actions/list-vendors-accounts.mjs +3 -3
- package/dist/actions/list-vendors-accounts.mjs.map +1 -1
- package/dist/actions/list-vendors-contacts.cjs +6 -6
- package/dist/actions/list-vendors-contacts.cjs.map +1 -1
- package/dist/actions/list-vendors-contacts.d.cts +23 -3
- package/dist/actions/list-vendors-contacts.d.cts.map +1 -1
- package/dist/actions/list-vendors-contacts.d.mts +23 -3
- package/dist/actions/list-vendors-contacts.d.mts.map +1 -1
- package/dist/actions/list-vendors-contacts.mjs +6 -6
- package/dist/actions/list-vendors-contacts.mjs.map +1 -1
- package/dist/actions/list-vendors-credits.cjs +2 -2
- package/dist/actions/list-vendors-credits.cjs.map +1 -1
- package/dist/actions/list-vendors-credits.d.cts +116 -3
- package/dist/actions/list-vendors-credits.d.cts.map +1 -1
- package/dist/actions/list-vendors-credits.d.mts +116 -3
- package/dist/actions/list-vendors-credits.d.mts.map +1 -1
- package/dist/actions/list-vendors-credits.mjs +2 -2
- package/dist/actions/list-vendors-credits.mjs.map +1 -1
- package/dist/actions/list-vendors.cjs +2 -2
- package/dist/actions/list-vendors.cjs.map +1 -1
- package/dist/actions/list-vendors.d.cts +60 -3
- package/dist/actions/list-vendors.d.cts.map +1 -1
- package/dist/actions/list-vendors.d.mts +60 -3
- package/dist/actions/list-vendors.d.mts.map +1 -1
- package/dist/actions/list-vendors.mjs +2 -2
- package/dist/actions/list-vendors.mjs.map +1 -1
- package/dist/actions/list-webhooks.cjs +5 -5
- package/dist/actions/list-webhooks.cjs.map +1 -1
- package/dist/actions/list-webhooks.d.cts +13 -3
- package/dist/actions/list-webhooks.d.cts.map +1 -1
- package/dist/actions/list-webhooks.d.mts +13 -3
- package/dist/actions/list-webhooks.d.mts.map +1 -1
- package/dist/actions/list-webhooks.mjs +5 -5
- package/dist/actions/list-webhooks.mjs.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.cjs +3 -3
- package/dist/actions/options-for-custom-accounting-field.cjs.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.d.cts +24 -3
- package/dist/actions/options-for-custom-accounting-field.d.cts.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.d.mts +24 -3
- package/dist/actions/options-for-custom-accounting-field.d.mts.map +1 -1
- package/dist/actions/options-for-custom-accounting-field.mjs +3 -3
- package/dist/actions/options-for-custom-accounting-field.mjs.map +1 -1
- package/dist/actions/patch-accounting-connection.cjs +8 -8
- package/dist/actions/patch-accounting-connection.cjs.map +1 -1
- package/dist/actions/patch-accounting-connection.d.cts +28 -3
- package/dist/actions/patch-accounting-connection.d.cts.map +1 -1
- package/dist/actions/patch-accounting-connection.d.mts +28 -3
- package/dist/actions/patch-accounting-connection.d.mts.map +1 -1
- package/dist/actions/patch-accounting-connection.mjs +8 -8
- package/dist/actions/patch-accounting-connection.mjs.map +1 -1
- package/dist/actions/patch-card-resource.cjs +1 -1
- package/dist/actions/patch-card-resource.cjs.map +1 -1
- package/dist/actions/patch-card-resource.d.cts +53 -3
- package/dist/actions/patch-card-resource.d.cts.map +1 -1
- package/dist/actions/patch-card-resource.d.mts +53 -3
- package/dist/actions/patch-card-resource.d.mts.map +1 -1
- package/dist/actions/patch-card-resource.mjs +1 -1
- package/dist/actions/patch-card-resource.mjs.map +1 -1
- package/dist/actions/patch-custom-field-option.cjs +1 -1
- package/dist/actions/patch-custom-field-option.cjs.map +1 -1
- package/dist/actions/patch-custom-field-option.d.cts +32 -3
- package/dist/actions/patch-custom-field-option.d.cts.map +1 -1
- package/dist/actions/patch-custom-field-option.d.mts +32 -3
- package/dist/actions/patch-custom-field-option.d.mts.map +1 -1
- package/dist/actions/patch-custom-field-option.mjs +1 -1
- package/dist/actions/patch-custom-field-option.mjs.map +1 -1
- package/dist/actions/patch-gl-account-resource.cjs +5 -5
- package/dist/actions/patch-gl-account-resource.cjs.map +1 -1
- package/dist/actions/patch-gl-account-resource.d.cts +29 -3
- package/dist/actions/patch-gl-account-resource.d.cts.map +1 -1
- package/dist/actions/patch-gl-account-resource.d.mts +29 -3
- package/dist/actions/patch-gl-account-resource.d.mts.map +1 -1
- package/dist/actions/patch-gl-account-resource.mjs +5 -5
- package/dist/actions/patch-gl-account-resource.mjs.map +1 -1
- package/dist/actions/patch-inventory-item-field.cjs +4 -4
- package/dist/actions/patch-inventory-item-field.cjs.map +1 -1
- package/dist/actions/patch-inventory-item-field.d.cts +15 -3
- package/dist/actions/patch-inventory-item-field.d.cts.map +1 -1
- package/dist/actions/patch-inventory-item-field.d.mts +15 -3
- package/dist/actions/patch-inventory-item-field.d.mts.map +1 -1
- package/dist/actions/patch-inventory-item-field.mjs +4 -4
- package/dist/actions/patch-inventory-item-field.mjs.map +1 -1
- package/dist/actions/post-accounting-accounts.cjs +7 -7
- package/dist/actions/post-accounting-accounts.cjs.map +1 -1
- package/dist/actions/post-accounting-accounts.d.cts +41 -3
- package/dist/actions/post-accounting-accounts.d.cts.map +1 -1
- package/dist/actions/post-accounting-accounts.d.mts +41 -3
- package/dist/actions/post-accounting-accounts.d.mts.map +1 -1
- package/dist/actions/post-accounting-accounts.mjs +7 -7
- package/dist/actions/post-accounting-accounts.mjs.map +1 -1
- package/dist/actions/post-accounting-connection.cjs +5 -5
- package/dist/actions/post-accounting-connection.cjs.map +1 -1
- package/dist/actions/post-accounting-connection.d.cts +26 -3
- package/dist/actions/post-accounting-connection.d.cts.map +1 -1
- package/dist/actions/post-accounting-connection.d.mts +26 -3
- package/dist/actions/post-accounting-connection.d.mts.map +1 -1
- package/dist/actions/post-accounting-connection.mjs +5 -5
- package/dist/actions/post-accounting-connection.mjs.map +1 -1
- package/dist/actions/post-accounting-vendors.cjs +6 -6
- package/dist/actions/post-accounting-vendors.cjs.map +1 -1
- package/dist/actions/post-accounting-vendors.d.cts +30 -3
- package/dist/actions/post-accounting-vendors.d.cts.map +1 -1
- package/dist/actions/post-accounting-vendors.d.mts +30 -3
- package/dist/actions/post-accounting-vendors.d.mts.map +1 -1
- package/dist/actions/post-accounting-vendors.mjs +6 -6
- package/dist/actions/post-accounting-vendors.mjs.map +1 -1
- package/dist/actions/post-inventory-item-options.cjs +5 -5
- package/dist/actions/post-inventory-item-options.cjs.map +1 -1
- package/dist/actions/post-inventory-item-options.d.cts +21 -3
- package/dist/actions/post-inventory-item-options.d.cts.map +1 -1
- package/dist/actions/post-inventory-item-options.d.mts +21 -3
- package/dist/actions/post-inventory-item-options.d.mts.map +1 -1
- package/dist/actions/post-inventory-item-options.mjs +5 -5
- package/dist/actions/post-inventory-item-options.mjs.map +1 -1
- package/dist/actions/post-physical-card.cjs +1 -1
- package/dist/actions/post-physical-card.cjs.map +1 -1
- package/dist/actions/post-physical-card.d.cts +92 -3
- package/dist/actions/post-physical-card.d.cts.map +1 -1
- package/dist/actions/post-physical-card.d.mts +92 -3
- package/dist/actions/post-physical-card.d.mts.map +1 -1
- package/dist/actions/post-physical-card.mjs +1 -1
- package/dist/actions/post-physical-card.mjs.map +1 -1
- package/dist/actions/reactivate-accounting-connection.cjs +5 -5
- package/dist/actions/reactivate-accounting-connection.cjs.map +1 -1
- package/dist/actions/reactivate-accounting-connection.d.cts +18 -3
- package/dist/actions/reactivate-accounting-connection.d.cts.map +1 -1
- package/dist/actions/reactivate-accounting-connection.d.mts +18 -3
- package/dist/actions/reactivate-accounting-connection.d.mts.map +1 -1
- package/dist/actions/reactivate-accounting-connection.mjs +5 -5
- package/dist/actions/reactivate-accounting-connection.mjs.map +1 -1
- package/dist/actions/reactivate-user.cjs.map +1 -1
- package/dist/actions/reactivate-user.d.cts +7 -3
- package/dist/actions/reactivate-user.d.cts.map +1 -1
- package/dist/actions/reactivate-user.d.mts +7 -3
- package/dist/actions/reactivate-user.d.mts.map +1 -1
- package/dist/actions/reactivate-user.mjs.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.cjs +7 -7
- package/dist/actions/submit-reimbursement-receipt.cjs.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.d.cts +152 -3
- package/dist/actions/submit-reimbursement-receipt.d.cts.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.d.mts +152 -3
- package/dist/actions/submit-reimbursement-receipt.d.mts.map +1 -1
- package/dist/actions/submit-reimbursement-receipt.mjs +7 -7
- package/dist/actions/submit-reimbursement-receipt.mjs.map +1 -1
- package/dist/actions/suspend-card.cjs +1 -1
- package/dist/actions/suspend-card.cjs.map +1 -1
- package/dist/actions/suspend-card.d.cts +11 -3
- package/dist/actions/suspend-card.d.cts.map +1 -1
- package/dist/actions/suspend-card.d.mts +11 -3
- package/dist/actions/suspend-card.d.mts.map +1 -1
- package/dist/actions/suspend-card.mjs +1 -1
- package/dist/actions/suspend-card.mjs.map +1 -1
- package/dist/actions/terminate-card.cjs +1 -1
- package/dist/actions/terminate-card.cjs.map +1 -1
- package/dist/actions/terminate-card.d.cts +11 -3
- package/dist/actions/terminate-card.d.cts.map +1 -1
- package/dist/actions/terminate-card.d.mts +11 -3
- package/dist/actions/terminate-card.d.mts.map +1 -1
- package/dist/actions/terminate-card.mjs +1 -1
- package/dist/actions/terminate-card.mjs.map +1 -1
- package/dist/actions/update-accounting-field.cjs.map +1 -1
- package/dist/actions/update-accounting-field.d.cts +38 -3
- package/dist/actions/update-accounting-field.d.cts.map +1 -1
- package/dist/actions/update-accounting-field.d.mts +38 -3
- package/dist/actions/update-accounting-field.d.mts.map +1 -1
- package/dist/actions/update-accounting-field.mjs.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.cjs +5 -5
- package/dist/actions/update-accounting-inventory-item-options.cjs.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.d.cts +15 -3
- package/dist/actions/update-accounting-inventory-item-options.d.cts.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.d.mts +15 -3
- package/dist/actions/update-accounting-inventory-item-options.d.mts.map +1 -1
- package/dist/actions/update-accounting-inventory-item-options.mjs +5 -5
- package/dist/actions/update-accounting-inventory-item-options.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.cjs +5 -5
- package/dist/actions/update-accounting-tax-code-options.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.d.cts +18 -3
- package/dist/actions/update-accounting-tax-code-options.d.cts.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.d.mts +18 -3
- package/dist/actions/update-accounting-tax-code-options.d.mts.map +1 -1
- package/dist/actions/update-accounting-tax-code-options.mjs +5 -5
- package/dist/actions/update-accounting-tax-code-options.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-code.cjs +4 -4
- package/dist/actions/update-accounting-tax-code.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-code.d.cts +15 -3
- package/dist/actions/update-accounting-tax-code.d.cts.map +1 -1
- package/dist/actions/update-accounting-tax-code.d.mts +15 -3
- package/dist/actions/update-accounting-tax-code.d.mts.map +1 -1
- package/dist/actions/update-accounting-tax-code.mjs +4 -4
- package/dist/actions/update-accounting-tax-code.mjs.map +1 -1
- package/dist/actions/update-accounting-tax-rate.cjs +5 -5
- package/dist/actions/update-accounting-tax-rate.cjs.map +1 -1
- package/dist/actions/update-accounting-tax-rate.d.cts +20 -3
- package/dist/actions/update-accounting-tax-rate.d.cts.map +1 -1
- package/dist/actions/update-accounting-tax-rate.d.mts +20 -3
- package/dist/actions/update-accounting-tax-rate.d.mts.map +1 -1
- package/dist/actions/update-accounting-tax-rate.mjs +5 -5
- package/dist/actions/update-accounting-tax-rate.mjs.map +1 -1
- package/dist/actions/update-accounting-vendor.cjs +7 -7
- package/dist/actions/update-accounting-vendor.cjs.map +1 -1
- package/dist/actions/update-accounting-vendor.d.cts +29 -3
- package/dist/actions/update-accounting-vendor.d.cts.map +1 -1
- package/dist/actions/update-accounting-vendor.d.mts +29 -3
- package/dist/actions/update-accounting-vendor.d.mts.map +1 -1
- package/dist/actions/update-accounting-vendor.mjs +7 -7
- package/dist/actions/update-accounting-vendor.mjs.map +1 -1
- package/dist/actions/update-card-limit.cjs +6 -6
- package/dist/actions/update-card-limit.cjs.map +1 -1
- package/dist/actions/update-card-limit.d.cts +32 -3
- package/dist/actions/update-card-limit.d.cts.map +1 -1
- package/dist/actions/update-card-limit.d.mts +32 -3
- package/dist/actions/update-card-limit.d.mts.map +1 -1
- package/dist/actions/update-card-limit.mjs +6 -6
- package/dist/actions/update-card-limit.mjs.map +1 -1
- package/dist/actions/update-department.cjs +2 -2
- package/dist/actions/update-department.cjs.map +1 -1
- package/dist/actions/update-department.d.cts +16 -3
- package/dist/actions/update-department.d.cts.map +1 -1
- package/dist/actions/update-department.d.mts +16 -3
- package/dist/actions/update-department.d.mts.map +1 -1
- package/dist/actions/update-department.mjs +2 -2
- package/dist/actions/update-department.mjs.map +1 -1
- package/dist/actions/update-limits.cjs +18 -18
- package/dist/actions/update-limits.cjs.map +1 -1
- package/dist/actions/update-limits.d.cts +136 -3
- package/dist/actions/update-limits.d.cts.map +1 -1
- package/dist/actions/update-limits.d.mts +136 -3
- package/dist/actions/update-limits.d.mts.map +1 -1
- package/dist/actions/update-limits.mjs +18 -18
- package/dist/actions/update-limits.mjs.map +1 -1
- package/dist/actions/update-user.cjs.map +1 -1
- package/dist/actions/update-user.d.cts +33 -3
- package/dist/actions/update-user.d.cts.map +1 -1
- package/dist/actions/update-user.d.mts +33 -3
- package/dist/actions/update-user.d.mts.map +1 -1
- package/dist/actions/update-user.mjs.map +1 -1
- package/dist/actions/upload-new-options.cjs +4 -4
- package/dist/actions/upload-new-options.cjs.map +1 -1
- package/dist/actions/upload-new-options.d.cts +33 -3
- package/dist/actions/upload-new-options.d.cts.map +1 -1
- package/dist/actions/upload-new-options.d.mts +33 -3
- package/dist/actions/upload-new-options.d.mts.map +1 -1
- package/dist/actions/upload-new-options.mjs +4 -4
- package/dist/actions/upload-new-options.mjs.map +1 -1
- package/dist/actions/upload-tax-code-options.cjs +5 -5
- package/dist/actions/upload-tax-code-options.cjs.map +1 -1
- package/dist/actions/upload-tax-code-options.d.cts +24 -3
- package/dist/actions/upload-tax-code-options.d.cts.map +1 -1
- package/dist/actions/upload-tax-code-options.d.mts +24 -3
- package/dist/actions/upload-tax-code-options.d.mts.map +1 -1
- package/dist/actions/upload-tax-code-options.mjs +5 -5
- package/dist/actions/upload-tax-code-options.mjs.map +1 -1
- package/dist/actions/upload-tax-rates.cjs +5 -5
- package/dist/actions/upload-tax-rates.cjs.map +1 -1
- package/dist/actions/upload-tax-rates.d.cts +27 -3
- package/dist/actions/upload-tax-rates.d.cts.map +1 -1
- package/dist/actions/upload-tax-rates.d.mts +27 -3
- package/dist/actions/upload-tax-rates.d.mts.map +1 -1
- package/dist/actions/upload-tax-rates.mjs +5 -5
- package/dist/actions/upload-tax-rates.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-reimbursement-receipt.cjs","names":["z","action"],"sources":["../../src/actions/submit-reimbursement-receipt.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampSubmitReimbursementReceiptInput: z.ZodTypeAny = z.object({\n receipt: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Receipt file to upload. FileUploadable object where 'name' should be the receipt filename (e.g., 'receipt.pdf', 'receipt.jpg').\"),\n reimbursee_id: z.string().describe(\"UUID of the user to create the reimbursement for\"),\n idempotency_key: z.string().describe(\"Unique value to prevent duplicate uploads. Use a UUID to avoid collisions\"),\n reimbursement_id: z.string().describe(\"Optional UUID of existing reimbursement to attach receipt to. If not provided, a new draft reimbursement will be created via OCR\").optional(),\n});\nconst RampSubmitReimbursementReceipt_ReimbursementTypeSchema: z.ZodTypeAny = z.enum([\"MILEAGE\", \"OUT_OF_POCKET\", \"PAYBACK_FULL\", \"PAYBACK_PARTIAL\", \"PER_DIEM\"]).describe(\"Type of reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementStateSchema: z.ZodTypeAny = z.enum([\"APPROVED\", \"AWAITING_EXPORT\", \"AWAITING_PAYMENT\", \"AWAITING_PUSH_PAYMENT\", \"CANCELED\", \"DELETED\", \"DRAFT\", \"EXPORTED\", \"EXPORT_FAILED\", \"EXPORT_INITIATED\", \"EXPORT_MARKED_AS_FAILED\", \"EXPORT_SUCCESSFUL\", \"FAILED_REIMBURSEMENT\", \"INIT\", \"MANUALLY_REIMBURSED\", \"MISSING_ACH\", \"PENDING\", \"PROCESSING\", \"PUSH_PAYMENT_FAILED\", \"PUSH_PAYMENT_INITIATED\", \"REIMBURSED\", \"REIMBURSED_VIA_PUSH\", \"REJECTED\"]).describe(\"Current state of the reimbursement.\");\nconst RampSubmitReimbursementReceipt_AttendeeSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the attendee\").nullable().optional(),\n user_id: z.string().describe(\"User ID of the attendee, if they are a Ramp user\").nullable().optional(),\n}).describe(\"Attendee information for a reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementDirectionSchema: z.ZodTypeAny = z.enum([\"BUSINESS_TO_USER\", \"USER_TO_BUSINESS\"]).describe(\"Direction of reimbursement payment.\");\nconst RampSubmitReimbursementReceipt_LineItemAmountSchema: z.ZodTypeAny = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD)\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n}).describe(\"Amount object for a line item.\");\nconst RampSubmitReimbursementReceipt_AccountingFieldSourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Source identifier\").nullable().optional(),\n name: z.string().describe(\"Source name\").nullable().optional(),\n}).describe(\"Source information for an accounting field.\");\nconst RampSubmitReimbursementReceipt_CategoryInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Internal identifier for the category\").nullable().optional(),\n name: z.string().describe(\"Name of the category\").nullable().optional(),\n type: z.string().describe(\"Type of accounting field (e.g., GL_ACCOUNT, Subsidiary)\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the category\").nullable().optional(),\n}).describe(\"Category information for an accounting field.\");\nconst RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Internal identifier for the accounting field selection\").nullable().optional(),\n name: z.string().describe(\"Name of the accounting field selection\").nullable().optional(),\n type: z.string().describe(\"Type of the accounting field selection\").nullable().optional(),\n source: RampSubmitReimbursementReceipt_AccountingFieldSourceSchema.nullable().optional(),\n external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampSubmitReimbursementReceipt_CategoryInfoSchema.nullable().optional(),\n external_code: z.string().describe(\"External code for the accounting field\").nullable().optional(),\n provider_name: z.string().describe(\"Name of the accounting provider\").nullable().optional(),\n}).describe(\"Accounting field selection with category information.\");\nconst RampSubmitReimbursementReceipt_LineItemSchema: z.ZodTypeAny = z.object({\n memo: z.string().describe(\"Memo for this line item\").nullable().optional(),\n amount: RampSubmitReimbursementReceipt_LineItemAmountSchema.nullable().optional(),\n accounting_field_selections: z.array(RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\").nullable().optional(),\n}).describe(\"Individual line item within a reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementSyncStatusSchema: z.ZodTypeAny = z.enum([\"NOT_SYNC_READY\", \"SYNCED\", \"SYNC_READY\"]).describe(\"Sync status of the reimbursement.\");\nconst RampSubmitReimbursementReceipt_MoneyAmountSchema: z.ZodTypeAny = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD). Divide by minor_unit_conversion_rate to get decimal amount\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR)\").nullable().optional(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major units (e.g., 100 for USD cents to dollars)\").nullable().optional(),\n}).describe(\"Money amount with currency information.\");\nconst RampSubmitReimbursementReceipt_ExpenseGroupSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the expense group\").nullable().optional(),\n name: z.string().describe(\"Name of the expense group\").nullable().optional(),\n}).describe(\"Expense group information.\");\nexport const RampSubmitReimbursementReceiptOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the reimbursement\"),\n memo: z.string().describe(\"Reimbursement memo\").nullable().optional(),\n type: RampSubmitReimbursementReceipt_ReimbursementTypeSchema.nullable(),\n state: RampSubmitReimbursementReceipt_ReimbursementStateSchema.nullable(),\n amount: z.number().describe(\"The amount that the payor pays\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID associated with the reimbursement if a Trip ID is available\").nullable().optional(),\n user_id: z.string().describe(\"Unique identifier of the person who made the reimbursement\"),\n currency: z.string().describe(\"The currency that the payor pays with\"),\n distance: z.number().describe(\"The distance of the reimbursement in miles, for mileage reimbursements\").nullable().optional(),\n merchant: z.string().describe(\"The name of the merchant that the reimbursement is associated with\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt identifiers\").nullable().optional(),\n attendees: z.array(RampSubmitReimbursementReceipt_AttendeeSchema).describe(\"List of attendees for the reimbursement\").nullable().optional(),\n direction: RampSubmitReimbursementReceipt_ReimbursementDirectionSchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated business entity\").nullable().optional(),\n synced_at: z.string().describe(\"Time when reimbursement has been synced. Will be None if the reimbursement is not synced (ISO8601 format)\").nullable().optional(),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip, for mileage reimbursements\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the reimbursement is created (ISO8601 format)\"),\n line_items: z.array(RampSubmitReimbursementReceipt_LineItemSchema).describe(\"List of line items related to the reimbursement\").nullable().optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment batch that the reimbursement is associated with, once paid\").nullable().optional(),\n updated_at: z.string().describe(\"Time at which the reimbursement was last updated (ISO8601 format)\").nullable().optional(),\n user_email: z.string().describe(\"Email of the person who made the reimbursement\"),\n approved_at: z.string().describe(\"Time at which the reimbursement is approved (ISO8601 format)\").nullable().optional(),\n employee_id: z.string().describe(\"Employee ID of the person who made the reimbursement\").nullable().optional(),\n merchant_id: z.string().describe(\"The unique identifier of the merchant. Note that this field may be empty when merchant is populated if Ramp does not recognize the merchant\").nullable().optional(),\n sync_status: RampSubmitReimbursementReceipt_ReimbursementSyncStatusSchema.nullable().optional(),\n end_location: z.string().describe(\"Ending location of the trip, for mileage reimbursements\").nullable().optional(),\n payee_amount: RampSubmitReimbursementReceipt_MoneyAmountSchema.nullable().optional(),\n submitted_at: z.string().describe(\"Time when reimbursement was most recently submitted (ISO8601 format)\").nullable().optional(),\n expense_group: RampSubmitReimbursementReceipt_ExpenseGroupSchema.nullable().optional(),\n spend_limit_id: z.string().describe(\"Spend limit to which the reimbursement is attributed, if it exists\").nullable().optional(),\n start_location: z.string().describe(\"Starting location of the trip, for mileage reimbursements\").nullable().optional(),\n user_full_name: z.string().describe(\"Full name of the person who made the reimbursement\"),\n accounting_date: z.string().describe(\"The date for the reimbursement for accounting purposes. If not specified, falls back to the transaction date\").nullable().optional(),\n payment_batch_id: z.string().describe(\"The unique identifier of the reimbursement payment batch that the reimbursement is associated with\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the transaction (ISO 8601 date format)\").nullable().optional(),\n payment_processed_at: z.string().describe(\"Time of reimbursement payment (ISO8601 format)\").nullable().optional(),\n accounting_field_selections: z.array(RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema).describe(\"List of accounting fields selected to code the reimbursement\").nullable().optional(),\n original_reimbursement_amount: RampSubmitReimbursementReceipt_MoneyAmountSchema.nullable().optional(),\n}).describe(\"Complete reimbursement details returned after submitting a receipt.\");\n\nexport const rampSubmitReimbursementReceipt = action(\"RAMP_SUBMIT_REIMBURSEMENT_RECEIPT\", {\n slug: \"ramp-submit-reimbursement-receipt\",\n name: \"Submit Reimbursement Receipt\",\n description: \"Tool to upload a receipt for a reimbursement. Use when submitting receipts for out-of-pocket expenses. If reimbursement_id is provided, attaches the receipt to an existing reimbursement; otherwise creates a new draft reimbursement via OCR.\",\n input: RampSubmitReimbursementReceiptInput,\n output: RampSubmitReimbursementReceiptOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iIAAiI;CAC3I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACrF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CAChH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;AACrL,CAAC;AACD,MAAM,yDAAuEA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAiB;CAAgB;CAAmB;AAAU,CAAC,CAAC,CAAC,SAAS,wBAAwB;AAClM,MAAM,0DAAwEA,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A,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,6BAA6BA,IAAAA,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjM,+BAA+B,iDAAiD,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"submit-reimbursement-receipt.cjs","names":["z","action"],"sources":["../../src/actions/submit-reimbursement-receipt.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampSubmitReimbursementReceiptInput = z.object({\n receipt: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Receipt file to upload. The file name should match the receipt filename (for example, 'receipt.pdf' or 'receipt.jpg').\"),\n reimbursee_id: z.string().describe(\"UUID of the user to create the reimbursement for\"),\n idempotency_key: z.string().describe(\"Unique value to prevent duplicate uploads. Use a UUID to avoid collisions\"),\n reimbursement_id: z.string().describe(\"Optional UUID of existing reimbursement to attach receipt to. If not provided, a new draft reimbursement will be created via OCR\").optional(),\n});\nconst RampSubmitReimbursementReceipt_ReimbursementTypeSchema = z.enum([\"MILEAGE\", \"OUT_OF_POCKET\", \"PAYBACK_FULL\", \"PAYBACK_PARTIAL\", \"PER_DIEM\"]).describe(\"Type of reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementStateSchema = z.enum([\"APPROVED\", \"AWAITING_EXPORT\", \"AWAITING_PAYMENT\", \"AWAITING_PUSH_PAYMENT\", \"CANCELED\", \"DELETED\", \"DRAFT\", \"EXPORTED\", \"EXPORT_FAILED\", \"EXPORT_INITIATED\", \"EXPORT_MARKED_AS_FAILED\", \"EXPORT_SUCCESSFUL\", \"FAILED_REIMBURSEMENT\", \"INIT\", \"MANUALLY_REIMBURSED\", \"MISSING_ACH\", \"PENDING\", \"PROCESSING\", \"PUSH_PAYMENT_FAILED\", \"PUSH_PAYMENT_INITIATED\", \"REIMBURSED\", \"REIMBURSED_VIA_PUSH\", \"REJECTED\"]).describe(\"Current state of the reimbursement.\");\nconst RampSubmitReimbursementReceipt_AttendeeSchema = z.object({\n name: z.string().describe(\"Name of the attendee\").nullable().optional(),\n user_id: z.string().describe(\"User ID of the attendee, if they are a Ramp user\").nullable().optional(),\n}).describe(\"Attendee information for a reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementDirectionSchema = z.enum([\"BUSINESS_TO_USER\", \"USER_TO_BUSINESS\"]).describe(\"Direction of reimbursement payment.\");\nconst RampSubmitReimbursementReceipt_LineItemAmountSchema = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD)\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n}).describe(\"Amount object for a line item.\");\nconst RampSubmitReimbursementReceipt_AccountingFieldSourceSchema = z.object({\n id: z.string().describe(\"Source identifier\").nullable().optional(),\n name: z.string().describe(\"Source name\").nullable().optional(),\n}).describe(\"Source information for an accounting field.\");\nconst RampSubmitReimbursementReceipt_CategoryInfoSchema = z.object({\n id: z.string().describe(\"Internal identifier for the category\").nullable().optional(),\n name: z.string().describe(\"Name of the category\").nullable().optional(),\n type: z.string().describe(\"Type of accounting field (e.g., GL_ACCOUNT, Subsidiary)\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the category\").nullable().optional(),\n}).describe(\"Category information for an accounting field.\");\nconst RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema = z.object({\n id: z.string().describe(\"Internal identifier for the accounting field selection\").nullable().optional(),\n name: z.string().describe(\"Name of the accounting field selection\").nullable().optional(),\n type: z.string().describe(\"Type of the accounting field selection\").nullable().optional(),\n source: RampSubmitReimbursementReceipt_AccountingFieldSourceSchema.nullable().optional(),\n external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampSubmitReimbursementReceipt_CategoryInfoSchema.nullable().optional(),\n external_code: z.string().describe(\"External code for the accounting field\").nullable().optional(),\n provider_name: z.string().describe(\"Name of the accounting provider\").nullable().optional(),\n}).describe(\"Accounting field selection with category information.\");\nconst RampSubmitReimbursementReceipt_LineItemSchema = z.object({\n memo: z.string().describe(\"Memo for this line item\").nullable().optional(),\n amount: RampSubmitReimbursementReceipt_LineItemAmountSchema.nullable().optional(),\n accounting_field_selections: z.array(RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\").nullable().optional(),\n}).describe(\"Individual line item within a reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementSyncStatusSchema = z.enum([\"NOT_SYNC_READY\", \"SYNCED\", \"SYNC_READY\"]).describe(\"Sync status of the reimbursement.\");\nconst RampSubmitReimbursementReceipt_MoneyAmountSchema = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD). Divide by minor_unit_conversion_rate to get decimal amount\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR)\").nullable().optional(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major units (e.g., 100 for USD cents to dollars)\").nullable().optional(),\n}).describe(\"Money amount with currency information.\");\nconst RampSubmitReimbursementReceipt_ExpenseGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the expense group\").nullable().optional(),\n name: z.string().describe(\"Name of the expense group\").nullable().optional(),\n}).describe(\"Expense group information.\");\nexport const RampSubmitReimbursementReceiptOutput = z.object({\n id: z.string().describe(\"Unique identifier of the reimbursement\").nullable(),\n memo: z.string().describe(\"Reimbursement memo\").nullable().optional(),\n type: RampSubmitReimbursementReceipt_ReimbursementTypeSchema.nullable(),\n state: RampSubmitReimbursementReceipt_ReimbursementStateSchema.nullable(),\n amount: z.number().describe(\"The amount that the payor pays\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID associated with the reimbursement if a Trip ID is available\").nullable().optional(),\n user_id: z.string().describe(\"Unique identifier of the person who made the reimbursement\").nullable(),\n currency: z.string().describe(\"The currency that the payor pays with\").nullable(),\n distance: z.number().describe(\"The distance of the reimbursement in miles, for mileage reimbursements\").nullable().optional(),\n merchant: z.string().describe(\"The name of the merchant that the reimbursement is associated with\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt identifiers\").nullable().optional(),\n attendees: z.array(RampSubmitReimbursementReceipt_AttendeeSchema).describe(\"List of attendees for the reimbursement\").nullable().optional(),\n direction: RampSubmitReimbursementReceipt_ReimbursementDirectionSchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated business entity\").nullable().optional(),\n synced_at: z.string().describe(\"Time when reimbursement has been synced. Will be None if the reimbursement is not synced (ISO8601 format)\").nullable().optional(),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip, for mileage reimbursements\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the reimbursement is created (ISO8601 format)\").nullable(),\n line_items: z.array(RampSubmitReimbursementReceipt_LineItemSchema).describe(\"List of line items related to the reimbursement\").nullable().optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment batch that the reimbursement is associated with, once paid\").nullable().optional(),\n updated_at: z.string().describe(\"Time at which the reimbursement was last updated (ISO8601 format)\").nullable().optional(),\n user_email: z.string().describe(\"Email of the person who made the reimbursement\").nullable(),\n approved_at: z.string().describe(\"Time at which the reimbursement is approved (ISO8601 format)\").nullable().optional(),\n employee_id: z.string().describe(\"Employee ID of the person who made the reimbursement\").nullable().optional(),\n merchant_id: z.string().describe(\"The unique identifier of the merchant. Note that this field may be empty when merchant is populated if Ramp does not recognize the merchant\").nullable().optional(),\n sync_status: RampSubmitReimbursementReceipt_ReimbursementSyncStatusSchema.nullable().optional(),\n end_location: z.string().describe(\"Ending location of the trip, for mileage reimbursements\").nullable().optional(),\n payee_amount: RampSubmitReimbursementReceipt_MoneyAmountSchema.nullable().optional(),\n submitted_at: z.string().describe(\"Time when reimbursement was most recently submitted (ISO8601 format)\").nullable().optional(),\n expense_group: RampSubmitReimbursementReceipt_ExpenseGroupSchema.nullable().optional(),\n spend_limit_id: z.string().describe(\"Spend limit to which the reimbursement is attributed, if it exists\").nullable().optional(),\n start_location: z.string().describe(\"Starting location of the trip, for mileage reimbursements\").nullable().optional(),\n user_full_name: z.string().describe(\"Full name of the person who made the reimbursement\").nullable(),\n accounting_date: z.string().describe(\"The date for the reimbursement for accounting purposes. If not specified, falls back to the transaction date\").nullable().optional(),\n payment_batch_id: z.string().describe(\"The unique identifier of the reimbursement payment batch that the reimbursement is associated with\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the transaction (ISO 8601 date format)\").nullable().optional(),\n payment_processed_at: z.string().describe(\"Time of reimbursement payment (ISO8601 format)\").nullable().optional(),\n accounting_field_selections: z.array(RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema).describe(\"List of accounting fields selected to code the reimbursement\").nullable().optional(),\n original_reimbursement_amount: RampSubmitReimbursementReceipt_MoneyAmountSchema.nullable().optional(),\n}).describe(\"Complete reimbursement details returned after submitting a receipt.\");\n\nexport const rampSubmitReimbursementReceipt = action(\"RAMP_SUBMIT_REIMBURSEMENT_RECEIPT\", {\n slug: \"ramp-submit-reimbursement-receipt\",\n name: \"Submit Reimbursement Receipt\",\n description: \"Tool to upload a receipt for a reimbursement. Use when submitting receipts for out-of-pocket expenses. If reimbursement_id is provided, attaches the receipt to an existing reimbursement; otherwise creates a new draft reimbursement via OCR.\",\n input: RampSubmitReimbursementReceiptInput,\n output: RampSubmitReimbursementReceiptOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,OAAO;EAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,wHAAwH;CAClI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACrF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CAChH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;AACrL,CAAC;AACD,MAAM,yDAAyDA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAiB;CAAgB;CAAmB;AAAU,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpL,MAAM,0DAA0DA,IAAAA,EAAE,KAAK;CAAC;CAAY;CAAmB;CAAoB;CAAyB;CAAY;CAAW;CAAS;CAAY;CAAiB;CAAoB;CAA2B;CAAqB;CAAwB;CAAQ;CAAuB;CAAe;CAAW;CAAc;CAAuB;CAA0B;CAAc;CAAuB;AAAU,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACrgB,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG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D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjM,+BAA+B,iDAAiD,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,158 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/submit-reimbursement-receipt.d.ts
|
|
4
|
-
declare const RampSubmitReimbursementReceiptInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RampSubmitReimbursementReceiptInput: z.ZodObject<{
|
|
5
|
+
receipt: z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
s3key: z.ZodString;
|
|
8
|
+
mimetype: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
reimbursee_id: z.ZodString;
|
|
11
|
+
idempotency_key: z.ZodString;
|
|
12
|
+
reimbursement_id: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const RampSubmitReimbursementReceiptOutput: z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
18
|
+
MILEAGE: "MILEAGE";
|
|
19
|
+
OUT_OF_POCKET: "OUT_OF_POCKET";
|
|
20
|
+
PAYBACK_FULL: "PAYBACK_FULL";
|
|
21
|
+
PAYBACK_PARTIAL: "PAYBACK_PARTIAL";
|
|
22
|
+
PER_DIEM: "PER_DIEM";
|
|
23
|
+
}>>;
|
|
24
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
APPROVED: "APPROVED";
|
|
26
|
+
AWAITING_EXPORT: "AWAITING_EXPORT";
|
|
27
|
+
AWAITING_PAYMENT: "AWAITING_PAYMENT";
|
|
28
|
+
AWAITING_PUSH_PAYMENT: "AWAITING_PUSH_PAYMENT";
|
|
29
|
+
CANCELED: "CANCELED";
|
|
30
|
+
DELETED: "DELETED";
|
|
31
|
+
DRAFT: "DRAFT";
|
|
32
|
+
EXPORTED: "EXPORTED";
|
|
33
|
+
EXPORT_FAILED: "EXPORT_FAILED";
|
|
34
|
+
EXPORT_INITIATED: "EXPORT_INITIATED";
|
|
35
|
+
EXPORT_MARKED_AS_FAILED: "EXPORT_MARKED_AS_FAILED";
|
|
36
|
+
EXPORT_SUCCESSFUL: "EXPORT_SUCCESSFUL";
|
|
37
|
+
FAILED_REIMBURSEMENT: "FAILED_REIMBURSEMENT";
|
|
38
|
+
INIT: "INIT";
|
|
39
|
+
MANUALLY_REIMBURSED: "MANUALLY_REIMBURSED";
|
|
40
|
+
MISSING_ACH: "MISSING_ACH";
|
|
41
|
+
PENDING: "PENDING";
|
|
42
|
+
PROCESSING: "PROCESSING";
|
|
43
|
+
PUSH_PAYMENT_FAILED: "PUSH_PAYMENT_FAILED";
|
|
44
|
+
PUSH_PAYMENT_INITIATED: "PUSH_PAYMENT_INITIATED";
|
|
45
|
+
REIMBURSED: "REIMBURSED";
|
|
46
|
+
REIMBURSED_VIA_PUSH: "REIMBURSED_VIA_PUSH";
|
|
47
|
+
REJECTED: "REJECTED";
|
|
48
|
+
}>>;
|
|
49
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
52
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
53
|
+
distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
+
merchant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
receipts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
56
|
+
attendees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
57
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>>>>;
|
|
60
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
61
|
+
BUSINESS_TO_USER: "BUSINESS_TO_USER";
|
|
62
|
+
USER_TO_BUSINESS: "USER_TO_BUSINESS";
|
|
63
|
+
}>>;
|
|
64
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
waypoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
67
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
68
|
+
line_items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
69
|
+
memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
72
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
74
|
+
accounting_field_selections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
75
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
79
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
category_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
84
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
}, z.core.$strip>>>;
|
|
89
|
+
external_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
provider_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
}, z.core.$strip>>>>;
|
|
92
|
+
}, z.core.$strip>>>>;
|
|
93
|
+
payment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
user_email: z.ZodNullable<z.ZodString>;
|
|
96
|
+
approved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
employee_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
merchant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
sync_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
100
|
+
NOT_SYNC_READY: "NOT_SYNC_READY";
|
|
101
|
+
SYNCED: "SYNCED";
|
|
102
|
+
SYNC_READY: "SYNC_READY";
|
|
103
|
+
}>>>;
|
|
104
|
+
end_location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
payee_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
106
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
107
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
minor_unit_conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
110
|
+
submitted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
expense_group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
112
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
115
|
+
spend_limit_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
start_location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
user_full_name: z.ZodNullable<z.ZodString>;
|
|
118
|
+
accounting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
payment_batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
transaction_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
payment_processed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
accounting_field_selections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
123
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
127
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
category_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
132
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
}, z.core.$strip>>>;
|
|
137
|
+
external_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
+
provider_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
|
+
}, z.core.$strip>>>>;
|
|
140
|
+
original_reimbursement_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
141
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
142
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
minor_unit_conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
declare const rampSubmitReimbursementReceipt: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
147
|
+
receipt: {
|
|
148
|
+
name: string;
|
|
149
|
+
s3key: string;
|
|
150
|
+
mimetype: string;
|
|
151
|
+
};
|
|
152
|
+
reimbursee_id: string;
|
|
153
|
+
idempotency_key: string;
|
|
154
|
+
reimbursement_id?: string | undefined;
|
|
155
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
156
|
//#endregion
|
|
8
157
|
export { rampSubmitReimbursementReceipt };
|
|
9
158
|
//# sourceMappingURL=submit-reimbursement-receipt.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-reimbursement-receipt.d.cts","names":[],"sources":["../../src/actions/submit-reimbursement-receipt.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"submit-reimbursement-receipt.d.cts","names":[],"sources":["../../src/actions/submit-reimbursement-receipt.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAwDnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -1,9 +1,158 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/submit-reimbursement-receipt.d.ts
|
|
4
|
-
declare const RampSubmitReimbursementReceiptInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RampSubmitReimbursementReceiptInput: z.ZodObject<{
|
|
5
|
+
receipt: z.ZodObject<{
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
s3key: z.ZodString;
|
|
8
|
+
mimetype: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
reimbursee_id: z.ZodString;
|
|
11
|
+
idempotency_key: z.ZodString;
|
|
12
|
+
reimbursement_id: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const RampSubmitReimbursementReceiptOutput: z.ZodObject<{
|
|
15
|
+
id: z.ZodNullable<z.ZodString>;
|
|
16
|
+
memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
18
|
+
MILEAGE: "MILEAGE";
|
|
19
|
+
OUT_OF_POCKET: "OUT_OF_POCKET";
|
|
20
|
+
PAYBACK_FULL: "PAYBACK_FULL";
|
|
21
|
+
PAYBACK_PARTIAL: "PAYBACK_PARTIAL";
|
|
22
|
+
PER_DIEM: "PER_DIEM";
|
|
23
|
+
}>>;
|
|
24
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
APPROVED: "APPROVED";
|
|
26
|
+
AWAITING_EXPORT: "AWAITING_EXPORT";
|
|
27
|
+
AWAITING_PAYMENT: "AWAITING_PAYMENT";
|
|
28
|
+
AWAITING_PUSH_PAYMENT: "AWAITING_PUSH_PAYMENT";
|
|
29
|
+
CANCELED: "CANCELED";
|
|
30
|
+
DELETED: "DELETED";
|
|
31
|
+
DRAFT: "DRAFT";
|
|
32
|
+
EXPORTED: "EXPORTED";
|
|
33
|
+
EXPORT_FAILED: "EXPORT_FAILED";
|
|
34
|
+
EXPORT_INITIATED: "EXPORT_INITIATED";
|
|
35
|
+
EXPORT_MARKED_AS_FAILED: "EXPORT_MARKED_AS_FAILED";
|
|
36
|
+
EXPORT_SUCCESSFUL: "EXPORT_SUCCESSFUL";
|
|
37
|
+
FAILED_REIMBURSEMENT: "FAILED_REIMBURSEMENT";
|
|
38
|
+
INIT: "INIT";
|
|
39
|
+
MANUALLY_REIMBURSED: "MANUALLY_REIMBURSED";
|
|
40
|
+
MISSING_ACH: "MISSING_ACH";
|
|
41
|
+
PENDING: "PENDING";
|
|
42
|
+
PROCESSING: "PROCESSING";
|
|
43
|
+
PUSH_PAYMENT_FAILED: "PUSH_PAYMENT_FAILED";
|
|
44
|
+
PUSH_PAYMENT_INITIATED: "PUSH_PAYMENT_INITIATED";
|
|
45
|
+
REIMBURSED: "REIMBURSED";
|
|
46
|
+
REIMBURSED_VIA_PUSH: "REIMBURSED_VIA_PUSH";
|
|
47
|
+
REJECTED: "REJECTED";
|
|
48
|
+
}>>;
|
|
49
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
trip_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
user_id: z.ZodNullable<z.ZodString>;
|
|
52
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
53
|
+
distance: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
54
|
+
merchant: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
receipts: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
56
|
+
attendees: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
57
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
}, z.core.$strip>>>>;
|
|
60
|
+
direction: z.ZodNullable<z.ZodEnum<{
|
|
61
|
+
BUSINESS_TO_USER: "BUSINESS_TO_USER";
|
|
62
|
+
USER_TO_BUSINESS: "USER_TO_BUSINESS";
|
|
63
|
+
}>>;
|
|
64
|
+
entity_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
synced_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
waypoints: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
67
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
68
|
+
line_items: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
69
|
+
memo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
72
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
}, z.core.$strip>>>;
|
|
74
|
+
accounting_field_selections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
75
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
79
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
}, z.core.$strip>>>;
|
|
82
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
category_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
84
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
87
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
+
}, z.core.$strip>>>;
|
|
89
|
+
external_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
90
|
+
provider_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
}, z.core.$strip>>>>;
|
|
92
|
+
}, z.core.$strip>>>>;
|
|
93
|
+
payment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
94
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
95
|
+
user_email: z.ZodNullable<z.ZodString>;
|
|
96
|
+
approved_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
employee_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
98
|
+
merchant_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
99
|
+
sync_status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
100
|
+
NOT_SYNC_READY: "NOT_SYNC_READY";
|
|
101
|
+
SYNCED: "SYNCED";
|
|
102
|
+
SYNC_READY: "SYNC_READY";
|
|
103
|
+
}>>>;
|
|
104
|
+
end_location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
105
|
+
payee_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
106
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
107
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
minor_unit_conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
109
|
+
}, z.core.$strip>>>;
|
|
110
|
+
submitted_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
|
+
expense_group: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
112
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
115
|
+
spend_limit_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
|
+
start_location: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
|
+
user_full_name: z.ZodNullable<z.ZodString>;
|
|
118
|
+
accounting_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
payment_batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
transaction_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
payment_processed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
122
|
+
accounting_field_selections: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
123
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
125
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
127
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
}, z.core.$strip>>>;
|
|
130
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
category_info: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
132
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
133
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
136
|
+
}, z.core.$strip>>>;
|
|
137
|
+
external_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
138
|
+
provider_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
139
|
+
}, z.core.$strip>>>>;
|
|
140
|
+
original_reimbursement_amount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
141
|
+
amount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
142
|
+
currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
143
|
+
minor_unit_conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
144
|
+
}, z.core.$strip>>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
declare const rampSubmitReimbursementReceipt: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
147
|
+
receipt: {
|
|
148
|
+
name: string;
|
|
149
|
+
s3key: string;
|
|
150
|
+
mimetype: string;
|
|
151
|
+
};
|
|
152
|
+
reimbursee_id: string;
|
|
153
|
+
idempotency_key: string;
|
|
154
|
+
reimbursement_id?: string | undefined;
|
|
155
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
156
|
//#endregion
|
|
8
157
|
export { rampSubmitReimbursementReceipt };
|
|
9
158
|
//# sourceMappingURL=submit-reimbursement-receipt.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-reimbursement-receipt.d.mts","names":[],"sources":["../../src/actions/submit-reimbursement-receipt.ts"],"mappings":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"submit-reimbursement-receipt.d.mts","names":[],"sources":["../../src/actions/submit-reimbursement-receipt.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;;cAwDnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAyCpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -6,7 +6,7 @@ const RampSubmitReimbursementReceiptInput = z.object({
|
|
|
6
6
|
name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
7
7
|
s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
|
|
8
8
|
mimetype: z.string().describe("The MIME type of the file")
|
|
9
|
-
}).describe("Receipt file to upload.
|
|
9
|
+
}).describe("Receipt file to upload. The file name should match the receipt filename (for example, 'receipt.pdf' or 'receipt.jpg')."),
|
|
10
10
|
reimbursee_id: z.string().describe("UUID of the user to create the reimbursement for"),
|
|
11
11
|
idempotency_key: z.string().describe("Unique value to prevent duplicate uploads. Use a UUID to avoid collisions"),
|
|
12
12
|
reimbursement_id: z.string().describe("Optional UUID of existing reimbursement to attach receipt to. If not provided, a new draft reimbursement will be created via OCR").optional()
|
|
@@ -97,14 +97,14 @@ const rampSubmitReimbursementReceipt = action("RAMP_SUBMIT_REIMBURSEMENT_RECEIPT
|
|
|
97
97
|
description: "Tool to upload a receipt for a reimbursement. Use when submitting receipts for out-of-pocket expenses. If reimbursement_id is provided, attaches the receipt to an existing reimbursement; otherwise creates a new draft reimbursement via OCR.",
|
|
98
98
|
input: RampSubmitReimbursementReceiptInput,
|
|
99
99
|
output: z.object({
|
|
100
|
-
id: z.string().describe("Unique identifier of the reimbursement"),
|
|
100
|
+
id: z.string().describe("Unique identifier of the reimbursement").nullable(),
|
|
101
101
|
memo: z.string().describe("Reimbursement memo").nullable().optional(),
|
|
102
102
|
type: RampSubmitReimbursementReceipt_ReimbursementTypeSchema.nullable(),
|
|
103
103
|
state: RampSubmitReimbursementReceipt_ReimbursementStateSchema.nullable(),
|
|
104
104
|
amount: z.number().describe("The amount that the payor pays").nullable().optional(),
|
|
105
105
|
trip_id: z.string().describe("Trip ID associated with the reimbursement if a Trip ID is available").nullable().optional(),
|
|
106
|
-
user_id: z.string().describe("Unique identifier of the person who made the reimbursement"),
|
|
107
|
-
currency: z.string().describe("The currency that the payor pays with"),
|
|
106
|
+
user_id: z.string().describe("Unique identifier of the person who made the reimbursement").nullable(),
|
|
107
|
+
currency: z.string().describe("The currency that the payor pays with").nullable(),
|
|
108
108
|
distance: z.number().describe("The distance of the reimbursement in miles, for mileage reimbursements").nullable().optional(),
|
|
109
109
|
merchant: z.string().describe("The name of the merchant that the reimbursement is associated with").nullable().optional(),
|
|
110
110
|
receipts: z.array(z.string()).describe("List of receipt identifiers").nullable().optional(),
|
|
@@ -113,11 +113,11 @@ const rampSubmitReimbursementReceipt = action("RAMP_SUBMIT_REIMBURSEMENT_RECEIPT
|
|
|
113
113
|
entity_id: z.string().describe("Unique identifier of the associated business entity").nullable().optional(),
|
|
114
114
|
synced_at: z.string().describe("Time when reimbursement has been synced. Will be None if the reimbursement is not synced (ISO8601 format)").nullable().optional(),
|
|
115
115
|
waypoints: z.array(z.string()).describe("List of intermediate stops during the trip, for mileage reimbursements").nullable().optional(),
|
|
116
|
-
created_at: z.string().describe("Time at which the reimbursement is created (ISO8601 format)"),
|
|
116
|
+
created_at: z.string().describe("Time at which the reimbursement is created (ISO8601 format)").nullable(),
|
|
117
117
|
line_items: z.array(RampSubmitReimbursementReceipt_LineItemSchema).describe("List of line items related to the reimbursement").nullable().optional(),
|
|
118
118
|
payment_id: z.string().describe("The unique identifier of the payment batch that the reimbursement is associated with, once paid").nullable().optional(),
|
|
119
119
|
updated_at: z.string().describe("Time at which the reimbursement was last updated (ISO8601 format)").nullable().optional(),
|
|
120
|
-
user_email: z.string().describe("Email of the person who made the reimbursement"),
|
|
120
|
+
user_email: z.string().describe("Email of the person who made the reimbursement").nullable(),
|
|
121
121
|
approved_at: z.string().describe("Time at which the reimbursement is approved (ISO8601 format)").nullable().optional(),
|
|
122
122
|
employee_id: z.string().describe("Employee ID of the person who made the reimbursement").nullable().optional(),
|
|
123
123
|
merchant_id: z.string().describe("The unique identifier of the merchant. Note that this field may be empty when merchant is populated if Ramp does not recognize the merchant").nullable().optional(),
|
|
@@ -128,7 +128,7 @@ const rampSubmitReimbursementReceipt = action("RAMP_SUBMIT_REIMBURSEMENT_RECEIPT
|
|
|
128
128
|
expense_group: RampSubmitReimbursementReceipt_ExpenseGroupSchema.nullable().optional(),
|
|
129
129
|
spend_limit_id: z.string().describe("Spend limit to which the reimbursement is attributed, if it exists").nullable().optional(),
|
|
130
130
|
start_location: z.string().describe("Starting location of the trip, for mileage reimbursements").nullable().optional(),
|
|
131
|
-
user_full_name: z.string().describe("Full name of the person who made the reimbursement"),
|
|
131
|
+
user_full_name: z.string().describe("Full name of the person who made the reimbursement").nullable(),
|
|
132
132
|
accounting_date: z.string().describe("The date for the reimbursement for accounting purposes. If not specified, falls back to the transaction date").nullable().optional(),
|
|
133
133
|
payment_batch_id: z.string().describe("The unique identifier of the reimbursement payment batch that the reimbursement is associated with").nullable().optional(),
|
|
134
134
|
transaction_date: z.string().describe("Date of the transaction (ISO 8601 date format)").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submit-reimbursement-receipt.mjs","names":[],"sources":["../../src/actions/submit-reimbursement-receipt.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampSubmitReimbursementReceiptInput: z.ZodTypeAny = z.object({\n receipt: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Receipt file to upload. FileUploadable object where 'name' should be the receipt filename (e.g., 'receipt.pdf', 'receipt.jpg').\"),\n reimbursee_id: z.string().describe(\"UUID of the user to create the reimbursement for\"),\n idempotency_key: z.string().describe(\"Unique value to prevent duplicate uploads. Use a UUID to avoid collisions\"),\n reimbursement_id: z.string().describe(\"Optional UUID of existing reimbursement to attach receipt to. If not provided, a new draft reimbursement will be created via OCR\").optional(),\n});\nconst RampSubmitReimbursementReceipt_ReimbursementTypeSchema: z.ZodTypeAny = z.enum([\"MILEAGE\", \"OUT_OF_POCKET\", \"PAYBACK_FULL\", \"PAYBACK_PARTIAL\", \"PER_DIEM\"]).describe(\"Type of reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementStateSchema: z.ZodTypeAny = z.enum([\"APPROVED\", \"AWAITING_EXPORT\", \"AWAITING_PAYMENT\", \"AWAITING_PUSH_PAYMENT\", \"CANCELED\", \"DELETED\", \"DRAFT\", \"EXPORTED\", \"EXPORT_FAILED\", \"EXPORT_INITIATED\", \"EXPORT_MARKED_AS_FAILED\", \"EXPORT_SUCCESSFUL\", \"FAILED_REIMBURSEMENT\", \"INIT\", \"MANUALLY_REIMBURSED\", \"MISSING_ACH\", \"PENDING\", \"PROCESSING\", \"PUSH_PAYMENT_FAILED\", \"PUSH_PAYMENT_INITIATED\", \"REIMBURSED\", \"REIMBURSED_VIA_PUSH\", \"REJECTED\"]).describe(\"Current state of the reimbursement.\");\nconst RampSubmitReimbursementReceipt_AttendeeSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the attendee\").nullable().optional(),\n user_id: z.string().describe(\"User ID of the attendee, if they are a Ramp user\").nullable().optional(),\n}).describe(\"Attendee information for a reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementDirectionSchema: z.ZodTypeAny = z.enum([\"BUSINESS_TO_USER\", \"USER_TO_BUSINESS\"]).describe(\"Direction of reimbursement payment.\");\nconst RampSubmitReimbursementReceipt_LineItemAmountSchema: z.ZodTypeAny = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD)\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n}).describe(\"Amount object for a line item.\");\nconst RampSubmitReimbursementReceipt_AccountingFieldSourceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Source identifier\").nullable().optional(),\n name: z.string().describe(\"Source name\").nullable().optional(),\n}).describe(\"Source information for an accounting field.\");\nconst RampSubmitReimbursementReceipt_CategoryInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Internal identifier for the category\").nullable().optional(),\n name: z.string().describe(\"Name of the category\").nullable().optional(),\n type: z.string().describe(\"Type of accounting field (e.g., GL_ACCOUNT, Subsidiary)\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the category\").nullable().optional(),\n}).describe(\"Category information for an accounting field.\");\nconst RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Internal identifier for the accounting field selection\").nullable().optional(),\n name: z.string().describe(\"Name of the accounting field selection\").nullable().optional(),\n type: z.string().describe(\"Type of the accounting field selection\").nullable().optional(),\n source: RampSubmitReimbursementReceipt_AccountingFieldSourceSchema.nullable().optional(),\n external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampSubmitReimbursementReceipt_CategoryInfoSchema.nullable().optional(),\n external_code: z.string().describe(\"External code for the accounting field\").nullable().optional(),\n provider_name: z.string().describe(\"Name of the accounting provider\").nullable().optional(),\n}).describe(\"Accounting field selection with category information.\");\nconst RampSubmitReimbursementReceipt_LineItemSchema: z.ZodTypeAny = z.object({\n memo: z.string().describe(\"Memo for this line item\").nullable().optional(),\n amount: RampSubmitReimbursementReceipt_LineItemAmountSchema.nullable().optional(),\n accounting_field_selections: z.array(RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\").nullable().optional(),\n}).describe(\"Individual line item within a reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementSyncStatusSchema: z.ZodTypeAny = z.enum([\"NOT_SYNC_READY\", \"SYNCED\", \"SYNC_READY\"]).describe(\"Sync status of the reimbursement.\");\nconst RampSubmitReimbursementReceipt_MoneyAmountSchema: z.ZodTypeAny = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD). Divide by minor_unit_conversion_rate to get decimal amount\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR)\").nullable().optional(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major units (e.g., 100 for USD cents to dollars)\").nullable().optional(),\n}).describe(\"Money amount with currency information.\");\nconst RampSubmitReimbursementReceipt_ExpenseGroupSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the expense group\").nullable().optional(),\n name: z.string().describe(\"Name of the expense group\").nullable().optional(),\n}).describe(\"Expense group information.\");\nexport const RampSubmitReimbursementReceiptOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the reimbursement\"),\n memo: z.string().describe(\"Reimbursement memo\").nullable().optional(),\n type: RampSubmitReimbursementReceipt_ReimbursementTypeSchema.nullable(),\n state: RampSubmitReimbursementReceipt_ReimbursementStateSchema.nullable(),\n amount: z.number().describe(\"The amount that the payor pays\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID associated with the reimbursement if a Trip ID is available\").nullable().optional(),\n user_id: z.string().describe(\"Unique identifier of the person who made the reimbursement\"),\n currency: z.string().describe(\"The currency that the payor pays with\"),\n distance: z.number().describe(\"The distance of the reimbursement in miles, for mileage reimbursements\").nullable().optional(),\n merchant: z.string().describe(\"The name of the merchant that the reimbursement is associated with\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt identifiers\").nullable().optional(),\n attendees: z.array(RampSubmitReimbursementReceipt_AttendeeSchema).describe(\"List of attendees for the reimbursement\").nullable().optional(),\n direction: RampSubmitReimbursementReceipt_ReimbursementDirectionSchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated business entity\").nullable().optional(),\n synced_at: z.string().describe(\"Time when reimbursement has been synced. Will be None if the reimbursement is not synced (ISO8601 format)\").nullable().optional(),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip, for mileage reimbursements\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the reimbursement is created (ISO8601 format)\"),\n line_items: z.array(RampSubmitReimbursementReceipt_LineItemSchema).describe(\"List of line items related to the reimbursement\").nullable().optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment batch that the reimbursement is associated with, once paid\").nullable().optional(),\n updated_at: z.string().describe(\"Time at which the reimbursement was last updated (ISO8601 format)\").nullable().optional(),\n user_email: z.string().describe(\"Email of the person who made the reimbursement\"),\n approved_at: z.string().describe(\"Time at which the reimbursement is approved (ISO8601 format)\").nullable().optional(),\n employee_id: z.string().describe(\"Employee ID of the person who made the reimbursement\").nullable().optional(),\n merchant_id: z.string().describe(\"The unique identifier of the merchant. Note that this field may be empty when merchant is populated if Ramp does not recognize the merchant\").nullable().optional(),\n sync_status: RampSubmitReimbursementReceipt_ReimbursementSyncStatusSchema.nullable().optional(),\n end_location: z.string().describe(\"Ending location of the trip, for mileage reimbursements\").nullable().optional(),\n payee_amount: RampSubmitReimbursementReceipt_MoneyAmountSchema.nullable().optional(),\n submitted_at: z.string().describe(\"Time when reimbursement was most recently submitted (ISO8601 format)\").nullable().optional(),\n expense_group: RampSubmitReimbursementReceipt_ExpenseGroupSchema.nullable().optional(),\n spend_limit_id: z.string().describe(\"Spend limit to which the reimbursement is attributed, if it exists\").nullable().optional(),\n start_location: z.string().describe(\"Starting location of the trip, for mileage reimbursements\").nullable().optional(),\n user_full_name: z.string().describe(\"Full name of the person who made the reimbursement\"),\n accounting_date: z.string().describe(\"The date for the reimbursement for accounting purposes. If not specified, falls back to the transaction date\").nullable().optional(),\n payment_batch_id: z.string().describe(\"The unique identifier of the reimbursement payment batch that the reimbursement is associated with\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the transaction (ISO 8601 date format)\").nullable().optional(),\n payment_processed_at: z.string().describe(\"Time of reimbursement payment (ISO8601 format)\").nullable().optional(),\n accounting_field_selections: z.array(RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema).describe(\"List of accounting fields selected to code the reimbursement\").nullable().optional(),\n original_reimbursement_amount: RampSubmitReimbursementReceipt_MoneyAmountSchema.nullable().optional(),\n}).describe(\"Complete reimbursement details returned after submitting a receipt.\");\n\nexport const rampSubmitReimbursementReceipt = action(\"RAMP_SUBMIT_REIMBURSEMENT_RECEIPT\", {\n slug: \"ramp-submit-reimbursement-receipt\",\n name: \"Submit Reimbursement Receipt\",\n description: \"Tool to upload a receipt for a reimbursement. Use when submitting receipts for out-of-pocket expenses. If reimbursement_id is provided, attaches the receipt to an existing reimbursement; otherwise creates a new draft reimbursement via OCR.\",\n input: RampSubmitReimbursementReceiptInput,\n output: RampSubmitReimbursementReceiptOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoD,EAAE,OAAO;CACxE,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iIAAiI;CAC3I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACrF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CAChH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;AACrL,CAAC;AACD,MAAM,yDAAuE,EAAE,KAAK;CAAC;CAAW;CAAiB;CAAgB;CAAmB;AAAU,CAAC,CAAC,CAAC,SAAS,wBAAwB;AAClM,MAAM,0DAAwE,EAAE,KAAK;CAAC;CAAY;CAAmB;CAAoB;CAAyB;CAAY;CAAW;CAAS;CAAY;CAAiB;CAAoB;CAA2B;CAAqB;CAAwB;CAAQ;CAAuB;CAAe;CAAW;CAAc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6DAA6D,SAAS,CAAC,CAAC,SAAS;EAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,cAAc,iDAAiD,SAAS,CAAC,CAAC,SAAS;EACnF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,eAAe,kDAAkD,SAAS,CAAC,CAAC,SAAS;EACrF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EACxF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzK,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChK,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,6BAA6B,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjM,+BAA+B,iDAAiD,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"submit-reimbursement-receipt.mjs","names":[],"sources":["../../src/actions/submit-reimbursement-receipt.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampSubmitReimbursementReceiptInput = z.object({\n receipt: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"Receipt file to upload. The file name should match the receipt filename (for example, 'receipt.pdf' or 'receipt.jpg').\"),\n reimbursee_id: z.string().describe(\"UUID of the user to create the reimbursement for\"),\n idempotency_key: z.string().describe(\"Unique value to prevent duplicate uploads. Use a UUID to avoid collisions\"),\n reimbursement_id: z.string().describe(\"Optional UUID of existing reimbursement to attach receipt to. If not provided, a new draft reimbursement will be created via OCR\").optional(),\n});\nconst RampSubmitReimbursementReceipt_ReimbursementTypeSchema = z.enum([\"MILEAGE\", \"OUT_OF_POCKET\", \"PAYBACK_FULL\", \"PAYBACK_PARTIAL\", \"PER_DIEM\"]).describe(\"Type of reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementStateSchema = z.enum([\"APPROVED\", \"AWAITING_EXPORT\", \"AWAITING_PAYMENT\", \"AWAITING_PUSH_PAYMENT\", \"CANCELED\", \"DELETED\", \"DRAFT\", \"EXPORTED\", \"EXPORT_FAILED\", \"EXPORT_INITIATED\", \"EXPORT_MARKED_AS_FAILED\", \"EXPORT_SUCCESSFUL\", \"FAILED_REIMBURSEMENT\", \"INIT\", \"MANUALLY_REIMBURSED\", \"MISSING_ACH\", \"PENDING\", \"PROCESSING\", \"PUSH_PAYMENT_FAILED\", \"PUSH_PAYMENT_INITIATED\", \"REIMBURSED\", \"REIMBURSED_VIA_PUSH\", \"REJECTED\"]).describe(\"Current state of the reimbursement.\");\nconst RampSubmitReimbursementReceipt_AttendeeSchema = z.object({\n name: z.string().describe(\"Name of the attendee\").nullable().optional(),\n user_id: z.string().describe(\"User ID of the attendee, if they are a Ramp user\").nullable().optional(),\n}).describe(\"Attendee information for a reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementDirectionSchema = z.enum([\"BUSINESS_TO_USER\", \"USER_TO_BUSINESS\"]).describe(\"Direction of reimbursement payment.\");\nconst RampSubmitReimbursementReceipt_LineItemAmountSchema = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD)\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n}).describe(\"Amount object for a line item.\");\nconst RampSubmitReimbursementReceipt_AccountingFieldSourceSchema = z.object({\n id: z.string().describe(\"Source identifier\").nullable().optional(),\n name: z.string().describe(\"Source name\").nullable().optional(),\n}).describe(\"Source information for an accounting field.\");\nconst RampSubmitReimbursementReceipt_CategoryInfoSchema = z.object({\n id: z.string().describe(\"Internal identifier for the category\").nullable().optional(),\n name: z.string().describe(\"Name of the category\").nullable().optional(),\n type: z.string().describe(\"Type of accounting field (e.g., GL_ACCOUNT, Subsidiary)\").nullable().optional(),\n external_id: z.string().describe(\"External identifier for the category\").nullable().optional(),\n}).describe(\"Category information for an accounting field.\");\nconst RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema = z.object({\n id: z.string().describe(\"Internal identifier for the accounting field selection\").nullable().optional(),\n name: z.string().describe(\"Name of the accounting field selection\").nullable().optional(),\n type: z.string().describe(\"Type of the accounting field selection\").nullable().optional(),\n source: RampSubmitReimbursementReceipt_AccountingFieldSourceSchema.nullable().optional(),\n external_id: z.string().describe(\"External identifier for the accounting field selection\").nullable().optional(),\n category_info: RampSubmitReimbursementReceipt_CategoryInfoSchema.nullable().optional(),\n external_code: z.string().describe(\"External code for the accounting field\").nullable().optional(),\n provider_name: z.string().describe(\"Name of the accounting provider\").nullable().optional(),\n}).describe(\"Accounting field selection with category information.\");\nconst RampSubmitReimbursementReceipt_LineItemSchema = z.object({\n memo: z.string().describe(\"Memo for this line item\").nullable().optional(),\n amount: RampSubmitReimbursementReceipt_LineItemAmountSchema.nullable().optional(),\n accounting_field_selections: z.array(RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema).describe(\"Accounting field selections for this line item\").nullable().optional(),\n}).describe(\"Individual line item within a reimbursement.\");\nconst RampSubmitReimbursementReceipt_ReimbursementSyncStatusSchema = z.enum([\"NOT_SYNC_READY\", \"SYNCED\", \"SYNC_READY\"]).describe(\"Sync status of the reimbursement.\");\nconst RampSubmitReimbursementReceipt_MoneyAmountSchema = z.object({\n amount: z.number().int().describe(\"Amount in minor units (e.g., cents for USD). Divide by minor_unit_conversion_rate to get decimal amount\").nullable().optional(),\n currency_code: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR)\").nullable().optional(),\n minor_unit_conversion_rate: z.number().int().describe(\"Conversion rate from minor units to major units (e.g., 100 for USD cents to dollars)\").nullable().optional(),\n}).describe(\"Money amount with currency information.\");\nconst RampSubmitReimbursementReceipt_ExpenseGroupSchema = z.object({\n id: z.string().describe(\"Unique identifier for the expense group\").nullable().optional(),\n name: z.string().describe(\"Name of the expense group\").nullable().optional(),\n}).describe(\"Expense group information.\");\nexport const RampSubmitReimbursementReceiptOutput = z.object({\n id: z.string().describe(\"Unique identifier of the reimbursement\").nullable(),\n memo: z.string().describe(\"Reimbursement memo\").nullable().optional(),\n type: RampSubmitReimbursementReceipt_ReimbursementTypeSchema.nullable(),\n state: RampSubmitReimbursementReceipt_ReimbursementStateSchema.nullable(),\n amount: z.number().describe(\"The amount that the payor pays\").nullable().optional(),\n trip_id: z.string().describe(\"Trip ID associated with the reimbursement if a Trip ID is available\").nullable().optional(),\n user_id: z.string().describe(\"Unique identifier of the person who made the reimbursement\").nullable(),\n currency: z.string().describe(\"The currency that the payor pays with\").nullable(),\n distance: z.number().describe(\"The distance of the reimbursement in miles, for mileage reimbursements\").nullable().optional(),\n merchant: z.string().describe(\"The name of the merchant that the reimbursement is associated with\").nullable().optional(),\n receipts: z.array(z.string()).describe(\"List of receipt identifiers\").nullable().optional(),\n attendees: z.array(RampSubmitReimbursementReceipt_AttendeeSchema).describe(\"List of attendees for the reimbursement\").nullable().optional(),\n direction: RampSubmitReimbursementReceipt_ReimbursementDirectionSchema.nullable(),\n entity_id: z.string().describe(\"Unique identifier of the associated business entity\").nullable().optional(),\n synced_at: z.string().describe(\"Time when reimbursement has been synced. Will be None if the reimbursement is not synced (ISO8601 format)\").nullable().optional(),\n waypoints: z.array(z.string()).describe(\"List of intermediate stops during the trip, for mileage reimbursements\").nullable().optional(),\n created_at: z.string().describe(\"Time at which the reimbursement is created (ISO8601 format)\").nullable(),\n line_items: z.array(RampSubmitReimbursementReceipt_LineItemSchema).describe(\"List of line items related to the reimbursement\").nullable().optional(),\n payment_id: z.string().describe(\"The unique identifier of the payment batch that the reimbursement is associated with, once paid\").nullable().optional(),\n updated_at: z.string().describe(\"Time at which the reimbursement was last updated (ISO8601 format)\").nullable().optional(),\n user_email: z.string().describe(\"Email of the person who made the reimbursement\").nullable(),\n approved_at: z.string().describe(\"Time at which the reimbursement is approved (ISO8601 format)\").nullable().optional(),\n employee_id: z.string().describe(\"Employee ID of the person who made the reimbursement\").nullable().optional(),\n merchant_id: z.string().describe(\"The unique identifier of the merchant. Note that this field may be empty when merchant is populated if Ramp does not recognize the merchant\").nullable().optional(),\n sync_status: RampSubmitReimbursementReceipt_ReimbursementSyncStatusSchema.nullable().optional(),\n end_location: z.string().describe(\"Ending location of the trip, for mileage reimbursements\").nullable().optional(),\n payee_amount: RampSubmitReimbursementReceipt_MoneyAmountSchema.nullable().optional(),\n submitted_at: z.string().describe(\"Time when reimbursement was most recently submitted (ISO8601 format)\").nullable().optional(),\n expense_group: RampSubmitReimbursementReceipt_ExpenseGroupSchema.nullable().optional(),\n spend_limit_id: z.string().describe(\"Spend limit to which the reimbursement is attributed, if it exists\").nullable().optional(),\n start_location: z.string().describe(\"Starting location of the trip, for mileage reimbursements\").nullable().optional(),\n user_full_name: z.string().describe(\"Full name of the person who made the reimbursement\").nullable(),\n accounting_date: z.string().describe(\"The date for the reimbursement for accounting purposes. If not specified, falls back to the transaction date\").nullable().optional(),\n payment_batch_id: z.string().describe(\"The unique identifier of the reimbursement payment batch that the reimbursement is associated with\").nullable().optional(),\n transaction_date: z.string().describe(\"Date of the transaction (ISO 8601 date format)\").nullable().optional(),\n payment_processed_at: z.string().describe(\"Time of reimbursement payment (ISO8601 format)\").nullable().optional(),\n accounting_field_selections: z.array(RampSubmitReimbursementReceipt_AccountingFieldSelectionSchema).describe(\"List of accounting fields selected to code the reimbursement\").nullable().optional(),\n original_reimbursement_amount: RampSubmitReimbursementReceipt_MoneyAmountSchema.nullable().optional(),\n}).describe(\"Complete reimbursement details returned after submitting a receipt.\");\n\nexport const rampSubmitReimbursementReceipt = action(\"RAMP_SUBMIT_REIMBURSEMENT_RECEIPT\", {\n slug: \"ramp-submit-reimbursement-receipt\",\n name: \"Submit Reimbursement Receipt\",\n description: \"Tool to upload a receipt for a reimbursement. Use when submitting receipts for out-of-pocket expenses. If reimbursement_id is provided, attaches the receipt to an existing reimbursement; otherwise creates a new draft reimbursement via OCR.\",\n input: RampSubmitReimbursementReceiptInput,\n output: RampSubmitReimbursementReceiptOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,wHAAwH;CAClI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACrF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CAChH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,CAAC,CAAC,SAAS;AACrL,CAAC;AACD,MAAM,yDAAyD,EAAE,KAAK;CAAC;CAAW;CAAiB;CAAgB;CAAmB;AAAU,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACpL,MAAM,0DAA0D,EAAE,KAAK;CAAC;CAAY;CA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CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ const RampSuspendCardInput = zod.z.object({
|
|
|
5
5
|
card_id: zod.z.string().describe("The unique identifier of the card to suspend"),
|
|
6
6
|
idempotency_key: zod.z.string().describe("An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. To avoid collisions, we encourage clients to use random generated UUIDs.")
|
|
7
7
|
});
|
|
8
|
-
const RampSuspendCardOutput = zod.z.object({ id: zod.z.string().describe("ID of the deferred task. Task status can be checked via a GET call to /deferred/status/{task_id}") }).describe("Response containing the deferred task ID for tracking the card suspension operation.");
|
|
8
|
+
const RampSuspendCardOutput = zod.z.object({ id: zod.z.string().describe("ID of the deferred task. Task status can be checked via a GET call to /deferred/status/{task_id}").nullable() }).describe("Response containing the deferred task ID for tracking the card suspension operation.");
|
|
9
9
|
const rampSuspendCard = require_action.action("RAMP_SUSPEND_CARD", {
|
|
10
10
|
slug: "ramp-suspend-card",
|
|
11
11
|
name: "Suspend Card",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suspend-card.cjs","names":["z","action"],"sources":["../../src/actions/suspend-card.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampSuspendCardInput
|
|
1
|
+
{"version":3,"file":"suspend-card.cjs","names":["z","action"],"sources":["../../src/actions/suspend-card.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RampSuspendCardInput = z.object({\n card_id: z.string().describe(\"The unique identifier of the card to suspend\"),\n idempotency_key: z.string().describe(\"An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. To avoid collisions, we encourage clients to use random generated UUIDs.\"),\n});\nexport const RampSuspendCardOutput = z.object({\n id: z.string().describe(\"ID of the deferred task. Task status can be checked via a GET call to /deferred/status/{task_id}\").nullable(),\n}).describe(\"Response containing the deferred task ID for tracking the card suspension operation.\");\n\nexport const rampSuspendCard = action(\"RAMP_SUSPEND_CARD\", {\n slug: \"ramp-suspend-card\",\n name: \"Suspend Card\",\n description: \"Tool to suspend a card by creating an async task that locks the card from use. Use when you need to temporarily disable a card. The suspension is revertable.\",\n input: RampSuspendCardInput,\n output: RampSuspendCardOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC3E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kNAAkN;AACzP,CAAC;AACD,MAAa,wBAAwBA,IAAAA,EAAE,OAAO,EAC5C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,EACvI,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,kBAAkBC,eAAAA,OAAO,qBAAqB;CACzD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/suspend-card.d.ts
|
|
4
|
-
declare const RampSuspendCardInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RampSuspendCardInput: z.ZodObject<{
|
|
5
|
+
card_id: z.ZodString;
|
|
6
|
+
idempotency_key: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RampSuspendCardOutput: z.ZodObject<{
|
|
9
|
+
id: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const rampSuspendCard: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
12
|
+
card_id: string;
|
|
13
|
+
idempotency_key: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { rampSuspendCard };
|
|
9
17
|
//# sourceMappingURL=suspend-card.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suspend-card.d.cts","names":[],"sources":["../../src/actions/suspend-card.ts"],"mappings":";;;cAIa,oBAAA,
|
|
1
|
+
{"version":3,"file":"suspend-card.d.cts","names":[],"sources":["../../src/actions/suspend-card.ts"],"mappings":";;;cAIa,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;cAIpB,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;cAIrB,eAAA,gCAAe,wBAAA"}
|