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.

team.task.list

List all tasks with filtering

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @examples.team-hub
  • Tags: team-hub, task, list, query
  • File: packages/examples/team-hub/src/task/task.operations.ts
  • field.key.label
    team.task.list
    field.version.label
    1.0.0
    field.type.label
    operation (query)
    field.title.label
    team.task.list
    field.description.label

    List all tasks with filtering

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @examples.team-hub
  • Tags: team-hub, task, list, query
  • File: packages/examples/team-hub/src/task/task.operations.ts
  • field.tags.label
    team-hub,task,list,query
    field.owners.label
    @examples.team-hub
    field.stability.label
    stable

    List all tasks with filtering

    Goal

    Retrieve list of tasks

    Context

    Task management

    Source Definition

    import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
    import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
    import {
    	CreateTaskInputModel,
    	TaskModel,
    	UpdateTaskStatusInputModel,
    } from './task.schema';
    
    export const ListTasksOperation = defineQuery({
    	meta: {
    		key: 'team.task.list',
    		version: '1.0.0',
    		stability: 'stable',
    		owners: ['@examples.team-hub'],
    		tags: ['team-hub', 'task', 'list', 'query'],
    		description: 'List all tasks with filtering',
    		goal: 'Retrieve list of tasks',
    		context: 'Task management',
    	},
    	io: {
    		input: ListTasksInputModel,
    		output: ListTasksOutputModel,
    	},
    	policy: { auth: 'user' },
    	acceptance: {
    		scenarios: [
    			{
    				key: 'list-tasks-happy-path',
    				given: ['Tasks exist'],
    				when: ['User lists tasks'],
    				then: ['List of tasks is returned'],
    			},
    		],
    		examples: [
    			{
    				key: 'list-my-tasks',
    				input: { assigneeId: 'user-123', status: 'open', limit: 10 },
    				output: { tasks: [], total: 3 },
    			},
    		],
    	},
    });