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.

learning.getDueCards

Get flashcards due for review.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Tags: learning, flashcards
  • File: packages/modules/learning-journey/src/contracts/operations.ts
  • field.key.label
    learning.getDueCards
    field.version.label
    1.0.0
    field.type.label
    operation (query)
    field.title.label
    learning.getDueCards
    field.description.label

    Get flashcards due for review.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Tags: learning, flashcards
  • File: packages/modules/learning-journey/src/contracts/operations.ts
  • field.tags.label
    learning,flashcards
    field.owners.label
    field.stability.label
    stable

    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',
    	},
    });