import type { CommandContext } from "@tailor-platform/erp-kit/core"; import type { Transaction } from "../generated/kysely-tailordb"; import { postInventoryLedgerInternal, type PostInventoryLedgerInternalInput, } from "../internal/inventoryPosting"; import type { FinancialAccountingCommands, FinancialAccountingQueries, ItemManagementQueries, OrganizationQueries, } from "../module"; export type { PostInventoryMovementLine } from "../internal/inventoryPosting"; export type PostInventoryLedgerInput = PostInventoryLedgerInternalInput; export async function run( db: Transaction, input: PostInventoryLedgerInput, ctx: CommandContext, itemManagementQueries: Pick, organizationQueries: Pick, financialAccountingCommands: Pick< FinancialAccountingCommands, "createJournalEntry" | "postJournalEntry" >, financialAccountingQueries: Pick, ) { return postInventoryLedgerInternal( db, input, ctx, itemManagementQueries, organizationQueries, financialAccountingCommands, financialAccountingQueries, ); }