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.

service.quote.create

Create a quote/proposal.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @examples.service-business-os
  • Tags: service-business-os, quote, create
  • File: packages/examples/service-business-os/src/quote/quote.operations.ts
  • field.key.label
    service.quote.create
    field.version.label
    1.0.0
    field.type.label
    operation (command)
    field.title.label
    service.quote.create
    field.description.label

    Create a quote/proposal.

  • Type: operation (command)
  • Version: 1.0.0
  • Stability: stable
  • Owners: @examples.service-business-os
  • Tags: service-business-os, quote, create
  • File: packages/examples/service-business-os/src/quote/quote.operations.ts
  • field.tags.label
    service-business-os,quote,create
    field.owners.label
    @examples.service-business-os
    field.stability.label
    stable

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