Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

4.8 KB
Raw Blame
// SPDX-License-Identifier: LicenseRef-Carbon-Commercial
// Carbon Enterprise file, licensed only under the Carbon Commercial License
// (packages/ee/LICENSE). Not AGPL. Running, modifying, or copying it beyond those terms requires a commercial license.

export * from "./catalog";
export type { BatchPlan } from "./definition/batch";
export { batchCandidates, batchPlan } from "./definition/batch";
export type {
  CatalogAction,
  CatalogEntity,
  CatalogEvent,
  CatalogInput,
  CatalogIntegration,
  CatalogOperation,
  EventMatch,
  FixtureCatalogOptions,
  LinkFormat,
  LinksDeclaration,
  OptionsSource,
  PermissionAction,
  RequiredPermission,
  WorkflowCatalog
} from "./definition/catalog";
export {
  createFixtureCatalog,
  INTEGRATION_CONNECTION_INPUT,
  integrationAppLabelKey,
  isMultiSelect,
  walkPath
} from "./definition/catalog";
export {
  type CardRefusal,
  cardsOf,
  DATA_OPERATIONS,
  type DataOperation,
  type DataOperationSpec,
  foldOperationTypes,
  operationOf,
  operationsFor,
  truncateStarvedCards
} from "./definition/data-operations";
export type { WorkflowIssue, WorkflowIssueCode } from "./definition/issues";
export { REFERENCE_ISSUE_CODES } from "./definition/issues";
export {
  nextNodeName,
  slugifyNodeName,
  uniqueNodeName
} from "./definition/names";
export type {
  LoopList,
  NodeContext,
  NodeOutputs,
  ResolvedRef,
  ResolveFailure,
  ValueSite
} from "./definition/nodes";
export {
  checkNodeConfig,
  checkNodeTypes,
  getNodeHandles,
  getNodeLoopList,
  getNodeOutputs,
  getNodeValues,
  isNodeConfigured,
  NODE_KINDS
} from "./definition/nodes";
export type {
  WorkflowVersionRead,
  WorkflowVersionReadFailure
} from "./definition/normalize";
export {
  emptyDefinition,
  parseWorkflowDefinition,
  readWorkflowVersion
} from "./definition/normalize";
export type { WorkflowNotice, WorkflowNoticeCode } from "./definition/notices";
export { fieldNotices } from "./definition/notices";
export { topologicalNodeOrder } from "./definition/order";
export type { PathPosition } from "./definition/paths";
export { pathLabel } from "./definition/paths";
export {
  nextOccurrenceAfter,
  nextRunAfter,
  scheduleOffsetSeconds
} from "./definition/schedule";
export type {
  ActionNode,
  ComputeNode,
  ConditionNode,
  ConditionPath,
  FilterNode,
  IntegrationNode,
  LookupNode,
  OperationCard,
  Origin,
  TriggerNode,
  WorkflowDefinition,
  WorkflowEdge,
  WorkflowNode,
  WorkflowNodeType
} from "./definition/schema";
export {
  CURRENT_DEFINITION_FORMAT_VERSION,
  conditionPathSchema,
  DEFAULT_HANDLE,
  DEFAULT_OUTPUT,
  edgeSchema,
  FAILURE_HANDLE,
  MAX_CHAIN_DEPTH,
  MAX_LIST_ITEMS,
  nodeSchema,
  originSchema,
  SUCCESS_HANDLE,
  workflowDefinitionSchema
} from "./definition/schema";
export type {
  Clause,
  Combinator,
  ItemRef,
  Literal,
  LookupMatch,
  PairEntry,
  Pairs,
  PairValue,
  PrimitiveKind,
  ScalarType,
  Schedule,
  Template,
  TemplatePart,
  ValueOrRef,
  ValueType,
  VariableRef
} from "./definition/types";
export {
  canAssign,
  clauseSchema,
  combinatorSchema,
  describeType,
  expectedClauseRightType,
  itemRefSchema,
  literalSchema,
  literalValueMatchesType,
  lookupMatchSchema,
  OPERATORS_BY_TYPE,
  operatorSchema,
  operatorsForType,
  pairEntrySchema,
  pairsSchema,
  pairValueSchema,
  primitiveKindSchema,
  rendersAsText,
  scalarTypeSchema,
  scheduleSchema,
  t,
  templatePartSchema,
  templateSchema,
  typesEqual,
  valueOrRefSchema,
  valueTypeSchema,
  variableRefSchema,
  WORKFLOW_OPERATORS
} from "./definition/types";
export { referenceIssues, validateDefinition } from "./definition/validate";
export type {
  AvailableVariable,
  DefinitionContext
} from "./definition/variables";
export {
  availableVariables,
  createContext,
  variablesFromHandle
} from "./definition/variables";
export type { RunTrigger } from "./run-trigger";
export { runTriggerSchema } from "./run-trigger";
export type {
  ActionOutcome,
  ClauseEvaluation,
  EntityLoader,
  NodeDetail,
  NodeExecutor,
  NodeResult,
  OperationOutcome,
  Resolution,
  RuntimeContext,
  RuntimeValue,
  SearchCriterion,
  SearchOutcome,
  WorkflowServices
} from "./runtime";
export {
  actionExecutor,
  compare,
  computeExecutor,
  conditionExecutor,
  entityValue,
  evaluateClauses,
  executorFor,
  filterExecutor,
  filterSummary,
  fromColumn,
  fromJson,
  fromLiteral,
  isNull,
  itemKeyFor,
  listValue,
  lookupExecutor,
  NO_BRANCH,
  nullValue,
  pairsValue,
  planBatch,
  primitiveValue,
  renderTemplate,
  renderValue,
  resolveItem,
  resolveRef,
  resolveValue
} from "./runtime";
export type { RenderOptions } from "./runtime/resolve";
export type {
  CompanyLock,
  DesiredSubscription,
  DesiredTriggerRow
} from "./sync";
export {
  deriveWorkflowSubscriptions,
  deriveWorkflowTriggerRows,
  findTriggerSchedule,
  syncWorkflowTriggers
} from "./sync";