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.
Create a quote/proposal.
Goal
Quote clients.
Context
Quote creation.
Source Definition
import { defineCommand } from '@lssm-tech/lib.contracts-spec';
import {
AcceptQuoteInputModel,
CreateQuoteInputModel,
QuoteModel,
} from './quote.schema';
export const CreateQuoteContract = defineCommand({
meta: {
key: 'service.quote.create',
version: '1.0.0',
stability: 'stable',
owners: ['@examples.service-business-os'],
tags: ['service-business-os', 'quote', 'create'],
description: 'Create a quote/proposal.',
goal: 'Quote clients.',
context: 'Quote creation.',
},
io: {
input: CreateQuoteInputModel,
output: QuoteModel,
},
policy: { auth: 'user' },
acceptance: {
scenarios: [
{
key: 'create-quote-happy-path',
given: ['Client exists'],
when: ['User creates quote'],
then: ['Quote is created'],
},
],
examples: [
{
key: 'create-proposal',
input: {
clientId: 'client-123',
items: [{ description: 'Project A', price: 5000 }],
},
output: { id: 'quote-123', status: 'draft', total: 5000 },
},
],
},
});