import { SERVICE_CALLS } from './service-calls';
import { AbstractService } from '@iotize/tap';
export class TapnpassService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Get TAPNPass protocol configuration
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=1.0")
     * @return
     */
    getProtocolConfiguration() {
        return this.serviceCallRunner.execute(this.getProtocolConfigurationCall());
    }
    /**
     *
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=1.0")
     * @return call options
     */
    getProtocolConfigurationCall() {
        const callOptions = Object.assign({}, this.resources.getProtocolConfiguration);
        return callOptions;
    }
    /**
     * Temporary update configuration
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=1.0")
     * @param value input
     * @return
     */
    setProtocolConfiguration(
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.setProtocolConfigurationCall(value));
    }
    /**
     *
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=1.0")
     * @param value input
     * @return call options
     */
    setProtocolConfigurationCall(
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.setProtocolConfiguration);
        callOptions.body = value;
        return callOptions;
    }
    /**
     * Update protocol configuration
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=1.0")
     * @param value input
     * @return
     */
    putProtocolConfiguration(
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putProtocolConfigurationCall(value));
    }
    /**
     *
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=1.0")
     * @param value input
     * @return call options
     */
    putProtocolConfigurationCall(
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putProtocolConfiguration);
        callOptions.body = value;
        return callOptions;
    }
    /**
     * Read target status. Requires access rights to TAPNPass Control Bundle.
     *
     * LWM2M path: /1027//36
     *
     * @tapVersion(">=1.0")
     * @return
     */
    getStatus() {
        return this.serviceCallRunner.execute(this.getStatusCall());
    }
    /**
     *
     *
     * LWM2M path: /1027//36
     *
     * @tapVersion(">=1.0")
     * @return call options
     */
    getStatusCall() {
        const callOptions = Object.assign({}, this.resources.getStatus);
        return callOptions;
    }
    /**
     * Perform actions to ADP target. Requires access rights to TAPNPass Control Bundle.
     *
     * LWM2M path: /1027//39
     *
     * @deprecated
     * @tapVersion(">=1.0")
     * @param data input
     * @return
     */
    postAction(
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.postActionCall(data));
    }
    /**
     *
     *
     * LWM2M path: /1027//39
     *
     * @deprecated
     * @tapVersion(">=1.0")
     * @param data input
     * @return call options
     */
    postActionCall(
    /*
     *
     */
    data) {
        const callOptions = Object.assign({}, this.resources.postAction);
        callOptions.body = data;
        return callOptions;
    }
    /**
     * Read TAPNPass ADPCtrl1 Reg
     *
     * LWM2M path: /1027//41
     *
     * @tapVersion(">=1.51")
     * @return
     */
    getControlIn() {
        return this.serviceCallRunner.execute(this.getControlInCall());
    }
    /**
     *
     *
     * LWM2M path: /1027//41
     *
     * @tapVersion(">=1.51")
     * @return call options
     */
    getControlInCall() {
        const callOptions = Object.assign({}, this.resources.getControlIn);
        return callOptions;
    }
    /**
     * Write TAPNPass ADPCtrl1 Reg
     *
     * LWM2M path: /1027//41
     *
     * @tapVersion(">=1.51")
     * @param data input
     * @return
     */
    setControlIn(
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.setControlInCall(data));
    }
    /**
     *
     *
     * LWM2M path: /1027//41
     *
     * @tapVersion(">=1.51")
     * @param data input
     * @return call options
     */
    setControlInCall(
    /*
     *
     */
    data) {
        const callOptions = Object.assign({}, this.resources.setControlIn);
        callOptions.body = data;
        return callOptions;
    }
    /**
     * Read TAPNPass ADPCtrl2 Reg
     *
     * LWM2M path: /1027//42
     *
     * @tapVersion(">=1.51")
     * @return
     */
    getControlOut() {
        return this.serviceCallRunner.execute(this.getControlOutCall());
    }
    /**
     *
     *
     * LWM2M path: /1027//42
     *
     * @tapVersion(">=1.51")
     * @return call options
     */
    getControlOutCall() {
        const callOptions = Object.assign({}, this.resources.getControlOut);
        return callOptions;
    }
    /**
     * Write TAPNPass ADPCtrl2 Reg
     *
     * LWM2M path: /1027//42
     *
     * @tapVersion(">=1.51")
     * @param data input
     * @return
     */
    setAdpControlOut(
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.setAdpControlOutCall(data));
    }
    /**
     *
     *
     * LWM2M path: /1027//42
     *
     * @tapVersion(">=1.51")
     * @param data input
     * @return call options
     */
    setAdpControlOutCall(
    /*
     *
     */
    data) {
        const callOptions = Object.assign({}, this.resources.setAdpControlOut);
        callOptions.body = data;
        return callOptions;
    }
}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NlcnZpY2UvaW1wbC90YXBucGFzcy9zcmMvbGliL2dlbmVyYXRlZC9zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQU9oRCxPQUFPLEVBQUUsZUFBZSxFQUFtQixNQUFNLGFBQWEsQ0FBQztBQUUvRCxNQUFNLE9BQU8sZUFBZ0IsU0FBUSxlQUFlO0lBQXBEOztRQUNTLGNBQVMsR0FBRyxhQUFhLENBQUM7SUF5VG5DLENBQUM7SUF2VEM7Ozs7Ozs7T0FPRztJQUNILHdCQUF3QjtRQUd0QixPQUFPLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLDRCQUE0QixFQUFFLENBQUMsQ0FBQztJQUM3RSxDQUFDO0lBRUQ7Ozs7Ozs7T0FPRztJQUNILDRCQUE0QjtRQUMxQixNQUFNLFdBQVcscUJBQVEsSUFBSSxDQUFDLFNBQVMsQ0FBQyx3QkFBd0IsQ0FBRSxDQUFDO1FBRW5FL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