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

export const notificationLifecycle = defineLifecycle({
    AdapterSuccess: { from: ["QUEUED"], to: "SENT" },
    SyncDeliver: { from: ["SENT"], to: "DELIVERED" },
    AdapterError: { from: ["QUEUED"], to: "FAILED" },
    ProviderDeliver: { from: ["SENT"], to: "DELIVERED" },
    ProviderBounce: { from: ["SENT", "DELIVERED"], to: "BOUNCED" },
});

export type NotificationStatus = typeof notificationLifecycle.states[number];
