// @generated — do not edit
import { defineLifecycle } from "@tailor-platform/erp-kit/core";

export const approvalStepLifecycle = defineLifecycle({
    activate: { from: ["PENDING"], to: "IN_PROGRESS" },
    approve: { from: ["IN_PROGRESS"], to: "APPROVED" },
    reject: { from: ["IN_PROGRESS"], to: "REJECTED" },
    reset: { from: ["IN_PROGRESS", "APPROVED"], to: "PENDING" },
});

export type ApprovalStepStatus = typeof approvalStepLifecycle.states[number];
