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

export const syncJobLifecycle = defineLifecycle({
    succeed: { from: ["RUNNING"], to: "SUCCEEDED" },
    partiallySucceed: { from: ["RUNNING"], to: "PARTIALLY_SUCCEEDED" },
    fail: { from: ["RUNNING"], to: "FAILED" },
    cancel: { from: ["RUNNING"], to: "CANCELLED" },
    retry: { from: ["FAILED", "PARTIALLY_SUCCEEDED", "CANCELLED"], to: "RUNNING" },
});

export type SyncJobStatus = typeof syncJobLifecycle.states[number];
