← API reference
SCHEMA VIEW

ERP Costing

Cost categories, centres, rates, operation cost mappings and recorded costs.

Open workbench ↗Download SDL ↓AI context →

47 operations · complete schema 213 KB

Query

magicQuery

Executes a Magic Query string and returns the predefined query's JSON result. On a bad noun or parameter, returns a structured error whose 'extensions' carry 'code', 'actionable_message', and 'suggestions' for self-correction.

→
Query

getMagicQuerySchema

Returns the input JSON Schema and output introspection for a Magic Query noun, so consumers (especially LLMs) can learn its contract before calling magicQuery.

→
Query

listMagicQueries

Lists every available Magic Query noun with a short description and its options — the discovery entry point.

→
Query

getMagicQueryGraphQL

Resolves a Magic Query string to the real GraphQL operation and variables it runs, so consumers can graduate from the façade to raw GraphQL. Does not execute.

→
Query

listDataChangeEventTopics

List all valid data change event topics, grouped by resource. Requires authentication.

→
Query

generateDefaultDataQuery

Generate a default GraphQL data query for an event topic. Returns a query string with all scalar fields for the resource, or null if the topic has no matching query. The query uses $id as the variable for the resource ID.

→
Query

ping

Health check endpoint

→
Query

getCostCategory

Fetch a single cost category by ID. Requires costcategory:read permission.

→
Query

getCostCategoryBy

Fetch a cost category by external ID or code. Requires costcategory:read permission.

→
Query

listCostCategories

List cost categories with pagination. Requires costcategory:list permission.

→
Query

getCostRate

Fetch a single cost rate by ID. Requires costrate:read permission.

→
Query

listCostRates

List cost rates with pagination. Requires costrate:list permission.

→
Query

getRecordedCost

Fetch a single recorded cost by ID. Requires recordedcost:read permission.

→
Query

listRecordedCosts

List recorded costs with pagination. Requires recordedcost:list permission.

→
Query

getOperationCostMapping

Fetch a single operation cost mapping by ID. Requires costcategory:read permission.

→
Query

listOperationCostMappings

List operation cost mappings. Requires costcategory:list permission.

→
Query

iacSchema

The infrastructure-only view of this schema, for declarative tooling. Contains only annotated resources and the types they reach.

→
Query

iacValidate

Validate an infrastructure artifact. Pure and side-effect free; safe to alias many times in one document.

→
Query

iacGuides

Every authoring guide, for a tool that syncs them to a folder. Intended for `schema pull` to call once and write to disk, not for an agent to call while authoring — a file can be grepped and re-read in part, where a response arrives whole.

→
Query

helpChapters

List human-facing manual chapters from the running deployment.

→
Query

helpChapter

Read a chapter of the current published manual edition.

→
Query

searchHelp

Search human-facing manuals using shared semantic and text retrieval.

→
Query

schemaAuthoringCatalog

Compiler-owned vocabulary for the standalone XML JSON Schema dialect, including native form annotations.

→
Query

compileSchemaXML

Compile standalone XML schema syntax into JSON Schema without persisting it; host restrictions apply when embedded.

→
Query

renderSchemaXML

Render JSON Schema as native XML without dropping unsupported keywords or changing a saved document.

→
Query

iacSchemaDocument

Fetch the JSON Schema document a SCHEMA-kind validator references, for declarative tooling.

→
Query

quotingReadinessCheck

Check whether cost configuration is complete for automated quoting. Returns configured/unconfigured operation kinds and warnings.

→
Query

jobCostingSummary

Get a costing summary for a job including material and operation costs. Requires job:read.

→
Mutation

createCostCategory

Create a new cost category, failing if the code is already taken. Requires costcategory:write permission.

→
Mutation

updateCostCategory

Update a cost category in place. Only provided fields are changed. Requires costcategory:write permission.

→
Mutation

upsertCostCategory

Create or update a cost category. Requires costcategory:write permission.

→
Mutation

deleteCostCategory

Delete a cost category. Requires costcategory:delete permission.

→
Mutation

upsertCostRate

Create or update a cost rate. Updates create a new version for audit trail. Requires costrate:write permission.

→
Mutation

createCostRate

Create a new cost rate (always version 1). Requires costrate:write permission.

→
Mutation

deleteCostRate

Delete a cost rate nothing depends on. Refused, never cascaded, while recorded costs were priced with it or a later version replaces it; deleting the newest version makes the one it replaced current again. Requires costrate:delete permission.

→
Mutation

updateCostRate

Update a cost rate in place (does not create a new version, unlike upsertCostRate). Only provided fields are changed. Requires costrate:write permission.

→
Mutation

upsertRecordedCost

Record an actual cost incurred. Requires recordedcost:write permission.

→
Mutation

createRecordedCost

Create a new recorded cost. Requires recordedcost:write permission.

→
Mutation

updateRecordedCost

Update a recorded cost. Only provided fields are changed. Requires recordedcost:write permission.

→
Mutation

deleteRecordedCost

Delete a recorded cost. Requires recordedcost:delete permission.

→
Mutation

upsertOperationCostMapping

Create or update an operation cost mapping. Requires costcategory:write permission.

→
Mutation

createOperationCostMapping

Create a new operation cost mapping. Requires costcategory:write permission.

→
Mutation

updateOperationCostMapping

Update an operation cost mapping. Only provided fields are changed. Requires costcategory:write permission.

→
Mutation

deleteOperationCostMapping

Delete an operation cost mapping. Requires costcategory:delete permission.

→
Mutation

exportCostConfiguration

Export the tenant's cost configuration (categories, rates, operation mappings) as a flat CSV string for spreadsheet editing.

→
Mutation

importCostConfiguration

Import cost configuration from a CSV string. Upserts cost categories, operation-to-category mappings, and cost rates in a single transaction.

→
Subscription

dataChangeEvents

Subscribe to real-time data change events. Requires read permission on each requested resource.

→