Skip to content

@codesoul-co/hypha-core / modules/runtime/runtime-checkpoint-service

Using this module

Use the Runtime checkpoint service module for executing runtime behavior at this boundary. It exports 1 class, 1 interface.

Import from the package entrypoint

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

import type {
  RuntimeCheckpointServiceOptions,
} 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
RuntimeCheckpointServiceclassnew RuntimeCheckpointService(options: RuntimeCheckpointServiceOptions): RuntimeCheckpointServiceRuntime Checkpoint Service class with 3 public constructor or member entries; its exact declarations are listed below.
RuntimeCheckpointServiceOptionsinterfaceinterface RuntimeCheckpointServiceOptionsRuntime Checkpoint Service Options interface with 7 public fields or methods.

RuntimeCheckpointService

Runtime Checkpoint Service class with 3 public constructor or member entries; its exact declarations are listed below.

Declaration

text
export declare class RuntimeCheckpointService {
    constructor(options: RuntimeCheckpointServiceOptions);
    create(input: RuntimeCheckpointCreateCommand): Promise<RuntimeCheckpointCreateResult>;
    load(input: RuntimeCheckpointLoadRequest): Promise<RuntimeCheckpointLoadResult | null>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: RuntimeCheckpointServiceOptions): RuntimeCheckpointServiceCreates an instance of this class.
createmethodcreate(input: RuntimeCheckpointCreateCommand): Promise<RuntimeCheckpointCreateResult>Public method; parameters and return type are shown in the signature.
loadmethodload(input: RuntimeCheckpointLoadRequest): Promise<RuntimeCheckpointLoadResult | null>Public method; parameters and return type are shown in the signature.

RuntimeCheckpointServiceOptions

Runtime Checkpoint Service Options interface with 7 public fields or methods.

Declaration

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

Contract members

MemberKindSignatureDescription
checkpointspropertycheckpoints: RuntimeCheckpointStorePublic property; its type, readonly modifier and optionality are shown in the signature.
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.