Create threshold triggers
Define triggers with a descriptive name, condition, and optional notification target. Source Parts evaluates each trigger in real time.
await client.call("automation.triggers.create", {
name: "low-stock-alert",
type: "inventory.threshold",
options: {
sku: "TPS7A2012PDRVR",
threshold: 100
}
});