import { commandMutationIdentity, type MutationOperationId, } from "../../src/contracts/server-state.ts"; /** * 1103/16-05. A bound mutation's operation id in a test that has no HTTP * descriptor behind it, made by the one function that makes one. Feature * code spreads `commandMutationIdentity(_CONTRACT)` instead. */ export function testMutationOperationId(operationId: string): MutationOperationId { return commandMutationIdentity({ contract: { operationId, method: "POST", retrySemantics: "KEYED" }, }).operationId; }