/*! * Copyright (c) 2019 Contributors to the Eclipse Foundation * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0 * * SPDX-License-Identifier: EPL-2.0 */ import { GenericResponse, PutResponse } from '../../model/response'; import { Thing } from '../../model/things.model'; import { FieldsOptions, GetThingsOptions, MatchOptions } from '../../options/request.options'; import { RequestSender, RequestSenderFactory } from '../request-factory/request-sender'; import { HttpThingsHandle, WebSocketThingsHandle } from './things.interfaces'; /** * Handle to send Things requests. */ export declare class DefaultThingsHandle implements WebSocketThingsHandle, HttpThingsHandle { protected readonly requestFactory: RequestSender; protected constructor(requestFactory: RequestSender); /** * returns an instance of DefaultThingsHandle using the provided RequestSender. * * @param builder - The builder for the RequestSender to work with. * @returns The DefaultThingsHandle */ static getInstance(builder: RequestSenderFactory): DefaultThingsHandle; getThing(thingId: string, options?: FieldsOptions): Promise; getAttributes(thingId: string, options?: FieldsOptions): Promise; getAttribute(thingId: string, attributePath: string, options?: MatchOptions): Promise; getPolicyId(thingId: string, options?: MatchOptions): Promise; getDefinition(thingId: string, options?: MatchOptions): Promise; deleteThing(thingId: string, options?: MatchOptions): Promise; deleteAttributes(thingId: string, options?: MatchOptions): Promise; deleteAttribute(thingId: string, attributePath: string, options?: MatchOptions): Promise; deleteDefinition(thingId: string, options?: MatchOptions): Promise; getThings(thingIds: string[], options?: GetThingsOptions): Promise; postThing(thingWithoutId: Object): Promise; putThing(thing: Thing, options?: MatchOptions): Promise>; createThing(thing: Thing, options?: MatchOptions): Promise>; patchThing(thing: Thing, options?: MatchOptions | undefined): Promise>; putAttributes(thingId: string, attributes: object, options?: MatchOptions): Promise>; putAttribute(thingId: string, attributePath: string, attributeValue: any, options?: MatchOptions): Promise>; patchAttributes(thingId: string, attributes: object, options?: MatchOptions): Promise>; patchAttribute(thingId: string, attributePath: string, attributeValue: any, options?: MatchOptions): Promise>; putPolicyId(thingId: string, policyId: string, options?: MatchOptions): Promise>; patchPolicyId(thingId: string, policyId: string, options?: MatchOptions): Promise>; putDefinition(thingId: string, definition: string, options?: MatchOptions): Promise>; patchDefinition(thingId: string, definition: string, options?: MatchOptions): Promise>; private changeThing; getStringAtPath(thingId: string, path: string, options?: MatchOptions): Promise; deleteItemAtPath(thingId: string, path: string, options?: MatchOptions): Promise; } //# sourceMappingURL=things.d.ts.map