five-on-it / packages/missions/src/schema / ObjectiveNext
Variable: ObjectiveNext
constObjectiveNext:ZodObject<{done:ZodOptional<ZodUnion<readonly [ZodString,ZodString]>>;failed:ZodOptional<ZodUnion<readonly [ZodString,ZodString]>>; },$strict>
Defined in: packages/missions/src/schema.ts:718
Where an objective leads, by outcome: another objective by id, complete or fail, or in a versus mission win:<team> (the run ends, won by that team). Without it, a done objective leads to the next in document order (the last one completes the mission) and a failed one fails the mission.