OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Get flashcards due for review.
Goal
Get the next batch of cards to review.
Context
Called when starting a review session.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import {
CompleteLessonInput,
EnrollInCourseInput,
EnrollmentModel,
GetDueCardsInput,
GetDueCardsOutput,
GetLearnerDashboardInput,
LearnerDashboardModel,
SubmitCardReviewInput,
SuccessOutput,
} from './models';
import { LEARNING_JOURNEY_OWNERS } from './shared';
export const GetDueCardsContract = defineQuery({
meta: {
key: 'learning.getDueCards',
version: '1.0.0',
stability: 'stable',
owners: [...LEARNING_JOURNEY_OWNERS],
tags: ['learning', 'flashcards'],
description: 'Get flashcards due for review.',
goal: 'Get the next batch of cards to review.',
context: 'Called when starting a review session.',
},
io: {
input: GetDueCardsInput,
output: GetDueCardsOutput,
},
policy: {
auth: 'user',
},
});