smart-furniture-hookup-service
    Preparing search index...

    Service interface for managing smart furniture hookup.

    interface SmartFurnitureHookupService {
        createSmartFurnitureHookup(
            name: string,
            consumption: string,
            endpoint: string,
        ): Promise<SmartFurnitureHookup>;
        deleteSmartFurnitureHookup(id: SmartFurnitureHookupID): Promise<void>;
        getSmartFurnitureHookup(
            id: SmartFurnitureHookupID,
        ): Promise<SmartFurnitureHookup | null>;
        getSmartFurnitureHookups(): Promise<SmartFurnitureHookup[]>;
        updateSmartFurnitureHookup(
            id: SmartFurnitureHookupID,
            name?: string,
            endpoint?: string,
        ): Promise<SmartFurnitureHookup>;
    }

    Implemented by

    Index

    Methods

    • Creates a new smart furniture hookup with the given name, consumption and endpoint.

      Parameters

      • name: string

        The name of the new smart furniture hookup.

      • consumption: string

        The consumption information of the new smart furniture hookup.

      • endpoint: string

        The endpoint of the new smart furniture hookup.

      Returns Promise<SmartFurnitureHookup>

      SmartFurnitureHookupNameConflictError

      SmartFurnitureHookupEndpointConflictError

      InvalidConsumptionTypeError