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

export const channelOrderLifecycle = defineLifecycle({
    convert: { from: ["PENDING_CONVERSION"], to: "CONVERTED" },
    markException: { from: ["PENDING_CONVERSION"], to: "EXCEPTION" },
    record: { from: ["EXCEPTION"], to: "PENDING_CONVERSION" },
    cancel: { from: ["PENDING_CONVERSION", "EXCEPTION"], to: "CANCELLED_BY_CHANNEL" },
});

export type ChannelOrderStatus = typeof channelOrderLifecycle.states[number];
