Something went wrong. Try again.
A functional toolkit for authoring resource-leveling algorithms — compose constraint and scoring blocks, enumerate feasible schedules
Something went wrong. Try again.
1234567891011121314import { z } from "zod";
import { NullableDurationSchema } from "./duration.ts";import { RelationTypeSchema } from "./types.ts";
export const RelationSchema = z.object({ predecessorUniqueId: z.nullable(z.number()), successorUniqueId: z.nullable(z.number()), type: RelationTypeSchema, lag: NullableDurationSchema,});
export type Relation = z.infer<typeof RelationSchema>;