/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import dotenv from "dotenv"; dotenv.config(); /** * Example usage of the @apideck/unify SDK * * To run this example from the examples directory: * npm run build && npx tsx accountingTaxRatesList.example.ts */ import { Apideck } from "@apideck/unify"; const apideck = new Apideck({ consumerId: "test-consumer", appId: "dSBdXd2H6Mqwfg0atXHXYcysLJE9qyn1VwBtXHX", apiKey: process.env["APIDECK_API_KEY"] ?? "", }); async function main() { const result = await apideck.accounting.taxRates.list({ serviceId: "salesforce", companyId: "12345", filter: { assets: true, equity: true, expenses: true, liabilities: true, revenue: true, }, passThrough: { "search": "San Francisco", }, fields: "id,updated_at", }); for await (const page of result) { console.log(page); } } main().catch(console.error);