import { type PoolClient } from '@evershop/postgres-query-builder'; /** * Inventory events that say what changed, and only when something did. * * - `inventory_updated` fired on every UPDATE of `product_inventory`, also when * a product was saved with the same stock. The trigger now has a WHEN * clause: no change, no event. * - Its payload, `{ old, new }`, named the product only by its id. It now also * carries `product_id`, `product_uuid` and `sku`. * - New `product_back_in_stock`: the row goes from out of stock to in stock. * In stock is the storefront's rule (`isInStock` in * `graphql/types/Product/Inventory/Inventory.resolvers.js`): stock not * managed, or a quantity above 0 with stock availability on. Every way the * stock can come back (an admin save, a restock on order cancel, an import, * SQL by hand) goes through this trigger. */ declare const _default: (connection: PoolClient) => Promise; export default _default;