type ImportJob =
| {
childrenStats?: {
completed: number;
failed: number;
pending: number;
};
createdAt: string;
data: {
applicationId: string;
entityName: string;
initError?: string;
mapperId?: string;
source: "shopify" | "upload" | "scheduled";
};
error?: string | null;
id: string;
name: "batch";
parent?: string | null;
result?: unknown;
status: "failed" | "pending" | "completed";
streamToken: string;
}
| {
childrenStats?: {
completed: number;
failed: number;
pending: number;
};
createdAt: string;
data: {
applicationId: string;
entityData: Record<string, unknown>;
entityName: string;
mapperId?: string;
};
error?: string | null;
id: string;
name: "entity";
parent?: string | null;
result?: unknown;
status: "failed" | "pending" | "completed";
streamToken: string;
};