import { PriceOS } from "priceos";
import type { MyFeatures } from "./priceos.types";
const priceos = new PriceOS<MyFeatures>(process.env.PRICEOS_API_KEY!);
const result = await priceos.usage.trackBatch({
events: [
{
customerId: "customer_123",
featureKey: "api_calls",
eventKey: "evt_1",
},
{
customerId: "customer_123",
featureKey: "api_calls",
amount: 2,
eventKey: "evt_2",
},
],
});