Skip to content

@codesoul-co/hypha-core / modules/runtime/run-control

Using this module

Use the Run control module for executing runtime behavior at this boundary. It exports 1 class, 1 interface.

Import from the package entrypoint

ts
import {
  RuntimeRunControlService,
} from '@codesoul-co/hypha-core';

import type {
  RuntimeRunControlServiceOptions,
} from '@codesoul-co/hypha-core';

Usage patterns

  • Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.

Public exports

SymbolKindSignatureDescription
RuntimeRunControlServiceclassnew RuntimeRunControlService(options: RuntimeRunControlServiceOptions): RuntimeRunControlServiceRuntime Run Control Service class with 2 public constructor or member entries; its exact declarations are listed below.
RuntimeRunControlServiceOptionsinterfaceinterface RuntimeRunControlServiceOptionsRuntime Run Control Service Options interface with 6 public fields or methods.

RuntimeRunControlService

Runtime Run Control Service class with 2 public constructor or member entries; its exact declarations are listed below.

Declaration

text
export declare class RuntimeRunControlService {
    constructor(options: RuntimeRunControlServiceOptions);
    execute(input: RuntimeRunControlCommand): Promise<RuntimeRunControlResult>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: RuntimeRunControlServiceOptions): RuntimeRunControlServiceCreates an instance of this class.
executemethodexecute(input: RuntimeRunControlCommand): Promise<RuntimeRunControlResult>Public method; parameters and return type are shown in the signature.

RuntimeRunControlServiceOptions

Runtime Run Control Service Options interface with 6 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeRunControlServiceOptions } from '@codesoul-co/hypha-core';
  • Source module: modules/runtime/run-control

Declaration

text
export interface RuntimeRunControlServiceOptions {
    events: EventRuntime;
    projections: ProjectionEngine;
    projectionStore: ProjectionStore<RuntimeOrchestrationProjection>;
    runLeases: RunLeaseStore;
    now?: () => string;
    nextId?: (namespace: string) => string;
}

Contract members

MemberKindSignatureDescription
eventspropertyevents: EventRuntimePublic property; its type, readonly modifier and optionality are shown in the signature.
nextIdmethodnextId?(namespace: string): stringPublic method; parameters and return type are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.
projectionspropertyprojections: ProjectionEnginePublic property; its type, readonly modifier and optionality are shown in the signature.
projectionStorepropertyprojectionStore: ProjectionStore<RuntimeOrchestrationProjection>Public property; its type, readonly modifier and optionality are shown in the signature.
runLeasespropertyrunLeases: RunLeaseStorePublic property; its type, readonly modifier and optionality are shown in the signature.