import { SERVICE_CALLS } from "./service-calls";
import { AbstractService } from "@iotize/tap";
export class TapnpassService extends AbstractService {
    constructor() {
        super(...arguments);
        this.resources = SERVICE_CALLS;
    }
    /**
     * Get protocol configuration options
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @return
     */
    getProtocolConfiguration() {
        return this.serviceCallRunner.execute(this.getProtocolConfigurationCall());
    }
    /**
     *
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @return call options
     */
    getProtocolConfigurationCall() {
        const callOptions = Object.assign({}, this.resources.getProtocolConfiguration);
        return callOptions;
    }
    /**
     * Temporary update configuration
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @param value input
     * @return
     */
    setProtocolConfiguration(
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.setProtocolConfigurationCall(value));
    }
    /**
     *
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @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(">=")
     * @param value input
     * @return
     */
    putProtocolConfiguration(
    /*
     *
     */
    value) {
        return this.serviceCallRunner.execute(this.putProtocolConfigurationCall(value));
    }
    /**
     *
     *
     * LWM2M path: /1027//21
     *
     * @tapVersion(">=")
     * @param value input
     * @return call options
     */
    putProtocolConfigurationCall(
    /*
     *
     */
    value) {
        const callOptions = Object.assign({}, this.resources.putProtocolConfiguration);
        callOptions.body = value;
        return callOptions;
    }
    /**
     * Read target status
     *
     * LWM2M path: /1027//36
     *
     * @tapVersion(">=")
     * @return
     */
    getStatus() {
        return this.serviceCallRunner.execute(this.getStatusCall());
    }
    /**
     *
     *
     * LWM2M path: /1027//36
     *
     * @tapVersion(">=")
     * @return call options
     */
    getStatusCall() {
        const callOptions = Object.assign({}, this.resources.getStatus);
        return callOptions;
    }
    /**
     * Perform actions to ADP target.
     *
     * LWM2M path: /1027//39
     *
     * @deprecated
     * @tapVersion(">=")
     * @param data input
     * @return
     */
    postAction(
    /*
     *
     */
    data) {
        return this.serviceCallRunner.execute(this.postActionCall(data));
    }
    /**
     *
     *
     * LWM2M path: /1027//39
     *
     * @deprecated
     * @tapVersion(">=")
     * @param data input
     * @return call options
     */
    postActionCall(
    /*
     *
     */
    data) {
        const callOptions = Object.assign({}, this.resources.postAction);
        callOptions.body = data;
        return callOptions;
    }
    /**
     * Get 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;
    }
    /**
     * Direct access to 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;
    }
    /**
     * Direct access to 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;
    }
    /**
     * Direct access to 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0Bpb3RpemUvdGFwL3NlcnZpY2UvaW1wbC90YXBucGFzcy8iLCJzb3VyY2VzIjpbImxpYi9nZW5lcmF0ZWQvc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFPaEQsT0FBTyxFQUFFLGVBQWUsRUFBbUIsTUFBTSxhQUFhLENBQUM7QUFFL0QsTUFBTSxPQUFPLGVBQWdCLFNBQVEsZUFBZTtJQUFwRDs7UUFDUyxjQUFTLEdBQUcsYUFBYSxDQUFDO0lBeVRuQyxDQUFDO0lBdlRDOzs7Ozs7O09BT0c7SUFDSCx3QkFBd0I7UUFHdEIsT0FBTyxJQUFJLENBQUMsaUJBQWlCLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyw0QkFBNEIsRUFBRSxDQUFDLENBQUM7SUFDN0UsQ0FBQztJQUVEOzs7Ozs7O09BT0c7SUFDSCw0QkFBNEI7UUFDMUIsTUFBTSxXQUFXLHFCQUFRLElBQUksQ0FBQyxTQUFTLENBQUMsd0JBQXdCLENBQUUsQ0FBQztRQUVuRSxPQUFPLFdBQVcsQ0FBQztJQUNyQixDQUFDO0lBRUQ7Ozs7Ozs7O09BUUc7SUFDSCx3QkFBd0I7SUFDdEI7O09BRUc7SU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