Skip to content

@codesoul-co/hypha-memory / memory-server-permanent-migration-acceptance

Using this module

Use the Memory server permanent migration acceptance module for using the public contracts and operations for this capability boundary. It exports 1 function, 2 interfaces.

Import from the package entrypoint

ts
import {
  runPermanentMemoryBehaviorAcceptance,
} from '@codesoul-co/hypha-memory';

import type {
  PermanentMemoryBehaviorFinding,
  PermanentMemoryBehaviorReport,
} from '@codesoul-co/hypha-memory';

Usage patterns

  • Use the 2 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 function as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.

Public exports

SymbolKindSignatureDescription
runPermanentMemoryBehaviorAcceptancefunctionrunPermanentMemoryBehaviorAcceptance(factory: PermanentMemoryMigrationHarnessFactory, fixtures?: readonly PermanentMemoryFailureFixture[]): Promise<PermanentMemoryBehaviorReport>Run Permanent Memory Behavior Acceptance function with 1 public call signature; parameters and return types are listed below.
PermanentMemoryBehaviorFindinginterfaceinterface PermanentMemoryBehaviorFindingPermanent Memory Behavior Finding interface with 3 public fields or methods.
PermanentMemoryBehaviorReportinterfaceinterface PermanentMemoryBehaviorReportPermanent Memory Behavior Report interface with 3 public fields or methods.

runPermanentMemoryBehaviorAcceptance

Run Permanent Memory Behavior Acceptance function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function runPermanentMemoryBehaviorAcceptance(factory: PermanentMemoryMigrationHarnessFactory, fixtures?: readonly PermanentMemoryFailureFixture[]): Promise<PermanentMemoryBehaviorReport>;

Call signature

text
runPermanentMemoryBehaviorAcceptance(factory: PermanentMemoryMigrationHarnessFactory, fixtures?: readonly PermanentMemoryFailureFixture[]): Promise<PermanentMemoryBehaviorReport>

Parameters

ParameterTypeRequiredDescription
factoryPermanentMemoryMigrationHarnessFactoryYesRequired parameter; accepted values are defined by the type column.
fixturesreadonly PermanentMemoryFailureFixture[]NoOptional parameter; accepted values are defined by the type column.

Returns

  • Type: Promise<PermanentMemoryBehaviorReport>
  • Description: The return contract is defined by the type shown above.

PermanentMemoryBehaviorFinding

Permanent Memory Behavior Finding interface with 3 public fields or methods.

Declaration

text
export interface PermanentMemoryBehaviorFinding {
    fixtureId: string;
    code: string;
    message: string;
}

Contract members

MemberKindSignatureDescription
codepropertycode: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
fixtureIdpropertyfixtureId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
messagepropertymessage: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

PermanentMemoryBehaviorReport

Permanent Memory Behavior Report interface with 3 public fields or methods.

Declaration

text
export interface PermanentMemoryBehaviorReport {
    passed: boolean;
    cases: number;
    findings: PermanentMemoryBehaviorFinding[];
}

Contract members

MemberKindSignatureDescription
casespropertycases: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
findingspropertyfindings: PermanentMemoryBehaviorFinding[]Public property; its type, readonly modifier and optionality are shown in the signature.
passedpropertypassed: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.