interface FullHostOperations<SP extends object> {
    calculatePrices(
        request: PriceCalculationRequest,
    ): Promise<PriceCalculationResponse>;
    configurationUpdate(update: ConfigurationUpdate): void;
    restore(pin: string): Promise<RestoreResult<SP>>;
    save(params: HostSaveParams<SP>): Promise<SaveResult>;
}

Type Parameters

  • SP extends object

Hierarchy (View Summary)

Methods

  • Restores a planning from a backend.

    The backend should return the data that was saved with the pin.

    Will only be used when save is also implemented.

    Parameters

    • pin: string

    Returns Promise<RestoreResult<SP>>