Interface for the CanRisk channel. Creation of channel itself happens in the API model on replicant side.

Hierarchy (view full)

Constructors

Properties

onUpdated: OEvent<((timeOfEarliestChange: Date) => void)> = ...
state: StateMachine<"Uninitialised" | "Initialised", "shutdown" | "init">
channelId: "CanRisk" = 'CanRisk'

Methods

  • Parameters

    • OptionalafterDate: Date

      Optional.

    • OptionalownerId: SHA256IdHash<Person>

      Optional. Default self personId

    Returns Promise<undefined | CanRiskResult>

  • Parameters

    • OptionalquestionnaireResponsesHash: QuestionnaireResponsesHash

      Optional. when not provided first iteration result is returned

    • OptionalpostDate: Date

      Optional.

    • OptionalownerId: SHA256IdHash<Person>

      Optional. Default self personId

    Returns Promise<undefined | CanRiskResult>

  • Initialize this instance

    This must be done after the one instance was initialized.

    Returns Promise<void>